[LLVMdev] [PATCH] Don't optimize out GDB JIT registrar

Keno Fischer kfischer at college.harvard.edu
Sat Dec 28 07:55:06 PST 2013


Can we get this applied?


On Fri, Dec 20, 2013 at 12:50 PM, Andrew MacPherson
<andrew.macp at gmail.com>wrote:

> Thanks Joerg.
>
> I've made the change you suggested and verified that it still works. I
> think the noinline is still required though as this function can be called
> from a couple of places and gdb will want to set its breakpoint on the
> single function address. Let me know if you think otherwise though.
>
> Cheers,
> Andrew
>
>
>
> On Fri, Dec 20, 2013 at 11:52 AM, Joerg Sonnenberger <
> joerg at britannica.bec.de> wrote:
>
>> On Fri, Dec 20, 2013 at 11:18:46AM +0100, Andrew MacPherson wrote:
>> > This patch forces it to leave the call using the method described here
>> in
>> > the 'noinline' section:
>>
>> Use asm volatile("":::"memory") to make sure that it doesn't leave
>> trackes. The noinline can likely go in that case...
>>
>> Joerg
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131228/bd5cf1c5/attachment.html>


More information about the llvm-dev mailing list