My software uses the SIGUSR2 signal and I am using LLDB (under Xcode 4.6.2) as my debugger. I would like to disable LLDB from stoping at SIGUSR2 and have been doing so using the command:
process handle --pass true --stop false --notify true SIGUSR2
I am looking for a way to have LLDB always execute this command at startup. I have looked into adding something along the lines of settings append target.process.extra-startup-command process
in my .lldbinit, but while this changes the value of the target.process.extra-startup-command setting (as evidenced by the settings show
command), I am uncertain if/how I can use this setting to always execute the process handle
command to disable the SIGUSR2 signal.
I am aware of the "solution" posted here: Permanently configuring LLDB (in Xcode 4.3.2) not to stop on signals. I am looking however for a more elegant solution, if one exists.