[cfe-commits] [patch] Add codegen support for __debugbreak

Nico Weber thakis at chromium.org
Tue Sep 25 21:39:41 PDT 2012


Now with more int3.

On Wed, Sep 26, 2012 at 4:24 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Sep 25, 2012 at 4:04 AM, Nico Weber <thakis at chromium.org> wrote:
>> Hi,
>>
>> this tiny patch lets __debugbreak() do the same as __builtin_trap()
>> (instead of erroring out with "can't compile __debugbreak yet"). Ok?
>
> If you're going to implement __debugbreak(), please do it correctly...
> it's "call void @llvm.x86.int(i8 3)".
>
> -Eli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-debugbreak.patch
Type: application/octet-stream
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120926/887dc97b/attachment.obj>


More information about the cfe-commits mailing list