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:
Jason Molenda 2020-01-22 15:50:33 -08:00
parent b5b6126d97
commit 1f45914b42
1 changed files with 1 additions and 1 deletions

View File

@ -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