annotate lldb/tools/darwin-debug/CMakeLists.txt @ 203:0d4b2609c30f

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 05 Jun 2021 11:18:24 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1
anatofuz
parents:
diff changeset
2 # Create an LC_SEGMENT with the special name ExecExtraSuspend which
anatofuz
parents:
diff changeset
3 # debugserver can detect - it tells debugserver that it will exec a
anatofuz
parents:
diff changeset
4 # process and that process will start suspended, so debugserver will
anatofuz
parents:
diff changeset
5 # need to double-resume it to make it run. A random file is copied
anatofuz
parents:
diff changeset
6 # into the segment.
anatofuz
parents:
diff changeset
7 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,ExecExtraSuspend,ExecExtraSuspend,/dev/null")
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 add_lldb_tool(darwin-debug ADD_TO_FRAMEWORK
anatofuz
parents:
diff changeset
10 darwin-debug.cpp
anatofuz
parents:
diff changeset
11 )