12 lines · plain
1 2# Create an LC_SEGMENT with the special name ExecExtraSuspend which3# debugserver can detect - it tells debugserver that it will exec a4# process and that process will start suspended, so debugserver will5# need to double-resume it to make it run. A random file is copied6# into the segment.7set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,ExecExtraSuspend,ExecExtraSuspend,/dev/null")8 9add_lldb_tool(darwin-debug ADD_TO_FRAMEWORK10 darwin-debug.cpp11)12