xcode 如何告诉 LLDB 调试器不要处理 SIGBUS?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11984051/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to tell LLDB debugger not to handle SIGBUS?
提问by Ergwun
I'm embedding MonoTouch in an Xcode project, and want to stop LLDB debugger from handling SIGBUS signals, since they are used by the mono runtime. How can I do that?
我在 Xcode 项目中嵌入 MonoTouch,并希望阻止 LLDB 调试器处理 SIGBUS 信号,因为它们由单声道运行时使用。我怎样才能做到这一点?
回答by Jason Molenda
You can control how lldb intercepts/passes signals with the "process handle" command. For your case, you'd want to do
您可以使用“进程句柄”命令控制 lldb 如何拦截/传递信号。对于你的情况,你想做
(lldb) pro hand -p true -s false SIGBUS
NAME PASS STOP NOTIFY
========== ===== ===== ======
SIGBUS true false true
now the signals will be passed to your process without lldb getting in the way. The "NOTIFY" field indicates whether lldb should print that the signal was received - the default is that it will be printed in the debugger console but that doesn't seem to be happening right now. But the signal is correctly passed along, which is the important bit.
现在信号将传递到您的进程,而不会妨碍 lldb。“NOTIFY”字段指示 lldb 是否应打印已接收到的信号 - 默认是它将在调试器控制台中打印,但现在似乎没有发生。但是信号正确传递,这是重要的一点。