(gdb) break 6
Breakpoint 1 at 0x100003eaf: file writefile.c, line 9.
(gdb) run
Starting program: /Users/test/workspace/cprograms/a.out
注意:这个版本的 macOS 有系统完整性保护。
因为startup-with-shell' is enabled, gdb has worked around this by caching a copy of your shell. The shell used by "run" is now: /Users/test/Library/Caches/gdb/bin/sh *warning: Mach error at "../../gdb/darwin-nat.c:273" in function "void darwin_nat_target::check_new_threads(inferior *)": (ipc/send) invalid destination port (0x10000003) ../../gdb/darwin-nat.c:1686: internal-error: void darwin_nat_target::init_thread_list(inferior *): Assertion
!priv->threads.empty ()' failed.*
检测到 GDB 内部的问题,进一步的调试可能证明不可靠。退出此调试会话?(是或否)