I'm trying to get LLDB (running in Xcode 4.3.2 with an OS X application) to not stop on certain signals. If I enter
process handle SIGUSR2 -n true -p true -s false
on the debugging console it works fine and LLDB no longer stops on SIGUSR2.
However, if I put
command process handle SIGUSR2 -n true -p true -s false
into ~/.lldbinit it seems to be ignored. Other commands in this file (e.g. alias) work fine.
How can I make LLDB never stop on certain signals?
In case anyone else ever has this question, I finally solved it by adding a breakpoint in NSApplicationMain()
(for plain C programs, main()
would of course work as well).
I set the breakpoint action to process handle SIGUSR2 -n true -p true -s false
, and enabled the "Automatically continue after evaluating" option.
If anyone has a more elegant solution, I'd be happy to hear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With