<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"> __asm volatile ("int3");<br>
<br>
Should work on any debugger, not just lldb.<br>
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.<br>
<br>
<pre class="moz-signature" cols="72">Richard Mitton
<a class="moz-txt-link-abbreviated" href="mailto:richard@codersnotes.com">richard@codersnotes.com</a></pre>
On 03/15/2014 05:59 AM, Deepankar Sharma wrote:<br>
</div>
<blockquote
cite="mid:CADjSrDWD5jVxh_cb13e5EkG9sbbT=Ak5mDH9fcsSN7QR-Sf-Vw@mail.gmail.com"
type="cite">
<div dir="ltr">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.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>