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

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

问题描述

我在 Xcode 项目中嵌入 MonoTouch,并希望阻止 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天全站免登陆