forked from OSchip/llvm-project
Embed a zero-length /dev/null in darwin-debug for the special section.
Fred suggested that instead of embedded CMakeLists.txt in the binary as the contents of a special section, see if /dev/null would work. It does.
This commit is contained in:
parent
b5b6126d97
commit
1f45914b42
|
@ -4,7 +4,7 @@
|
|||
# process and that process will start suspended, so debugserver will
|
||||
# need to double-resume it to make it run. A random file is copied
|
||||
# into the segment.
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,ExecExtraSuspend,ExecExtraSuspend,${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,ExecExtraSuspend,ExecExtraSuspend,/dev/null")
|
||||
|
||||
add_lldb_tool(darwin-debug ADD_TO_FRAMEWORK
|
||||
darwin-debug.cpp
|
||||
|
|
Loading…
Reference in New Issue