我在gdb中遇到这个奇怪的错误,我无法追踪确切的代码行来追踪错误。有人知道这种类型的错误吗?这是我在gdb中得到的东西奇怪的GDB错误无法追踪
*** -[CALayer sublayers]: message sent to deallocated instance 0x911c2a0
(gdb) po 0x911c2a0
Program received signal SIGTRAP, Trace/breakpoint trap.
0x020993a7 in ___forwarding___()
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context to what it was before the call.
To change this behavior use "set unwindonsignal off"
Evaluation of the expression containing the function (_NSPrintForDebugger) will be abandoned.
(gdb) info symbol 0x911c2a0
No symbol matches 0x911c2a0.
(gdb)
我已经在环境变量中添加了NSZombieEnabled并将其设置为YES。我在哪里添加这些断点? fb - [_ NSZombie init] fb - [_ NSZombie retainCount] – 2010-05-26 08:36:36
这些是未来的断点(尚未加载的代码的断点)。您可以将它们添加到〜/ .gdbinit。请参阅http://nslog.de/posts/46以获取我建议放在那里的所有内容的列表。 – stigi 2010-05-26 19:22:50