首页 > 解决方案 > 已检测到 macOS Monterey v12.0.1(具有系统完整性保护)中 GNU gdb (GDB) 11.1 的内部问题,是否有修复?

问题描述

(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 内部的问题,进一步的调试可能证明不可靠。退出此调试会话?(是或否)

标签: cmacosdebugginggdbmacos-monterey

解决方案


推荐阅读