[Lldb-commits] [PATCH] D15834: Handle hardcoded breakpoints on Windows (e.g., int3 or __debugbreak())

Adrian McCarthy via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 7 07:47:13 PST 2016


amccarth added a comment.

In http://reviews.llvm.org/D15834#321261, @zturner wrote:

> In http://reviews.llvm.org/D15834#319237, @amccarth wrote:
>
> > In http://reviews.llvm.org/D15834#318623, @labath wrote:
> >
> > > Linux tests the same functionality in TestBuiltinTrap.py. Would it make sense to merge these two tests, given that the only difference is which compiler intrinsic is used to generate the int3 trap?
> >
> >
> > Yes, it makes sense to combine the tests.  The existing test does use the SB API very well, and TestBuiltinTrap.py is in a Linux-specific part of the test tree, so this may be more of re-working the Linux test to work much like this new one.
>
>
> Do clang / gcc have an intrinsic to generate an int3?


If not, it would be easy to restore TestBuiltinTrap.py and change my test to use __asm__ ("int 3"); on Linux.


http://reviews.llvm.org/D15834





More information about the lldb-commits mailing list