[lldb-dev] Programmatically set breakpoint in C++ code
Richard Mitton
richard at codersnotes.com
Sat Mar 15 15:21:22 PDT 2014
__asm volatile ("int3");
Should work on any debugger, not just lldb.
Also on Windows, you should generally use __debugbreak() instead of
DebugBreak, as the latter is a kernel-level call, whereas you generally
want a user-level breakpoint. The difference is that the user breakpoint
gives a nicer callstack.
Richard Mitton
richard at codersnotes.com
On 03/15/2014 05:59 AM, Deepankar Sharma wrote:
> Is there a way that I can programmatically hit a breakpoint in my C++
> code. I am looking for the lldb equivalent of the DebugBreak function
> on windows.
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140315/affeff20/attachment.html>
More information about the lldb-dev
mailing list