[lldb-dev] How to detach from stop mode without causing signal in inferior on Linux?

Jeffrey Tan via lldb-dev lldb-dev at lists.llvm.org
Mon Mar 28 16:21:35 PDT 2016


Hi,

When user tries to stop debugging, we call SBDebugger.Destroy(), then
SBDebugger.Terminate() and exit the python process. This works well on mac,
but on linux in running mode. However, I found if the debugger hits
breakpoint first, then user stops debugging, the inferior is killed with
siginal:
"*Trace/breakpoint trap*"

I tried to call SBTarget.DeleteAllBreakpoints() first before killing
debugger. Still the same result.

Jeffrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160328/260691c6/attachment.html>


More information about the lldb-dev mailing list