如何告诉LLDB调试器不处理SIGBUS? [英] How to tell LLDB debugger not to handle SIGBUS?

查看:92
本文介绍了如何告诉LLDB调试器不处理SIGBUS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将MonoTouch嵌入到Xcode项目中,并希望停止LLDB调试器处理SIGBUS信号,因为Mono运行时会使用它们.我该怎么办?

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?

推荐答案

您可以使用进程句柄"命令控制lldb如何拦截/传递信号.对于您的情况,您想做

You can control how lldb intercepts/passes signals with the "process handle" command. For your case, you'd want to do

(lldb) pro hand -p true -s false SIGBUS
NAME        PASS   STOP   NOTIFY
==========  =====  =====  ======
SIGBUS      true   false  true 

现在,信号将被传递到您的进程,而不会妨碍lldb. "NOTIFY"字段指示lldb是否应该打印接收到的信号-默认是它将在调试器控制台中打印,但是现在似乎没有发生.但是信号正确传递了,这很重要.

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调试器不处理SIGBUS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆