[LLVMdev] [PATCH] Don't optimize out GDB JIT registrar
Andrew MacPherson
andrew.macp at gmail.com
Fri Dec 20 02:18:46 PST 2013
Hi,
We switched from compiling LLVM with gcc to clang (3.3) and it appears that
clang (correctly I think) optimizes away the GDBRegistrar's
__jit_debug_register_code() function that's used to trigger reading debug
info from JIT-ted code, breaking GDB support.
This patch forces it to leave the call using the method described here in
the 'noinline' section:
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131220/7c80d151/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GDBRegistrar.patch
Type: text/x-diff
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131220/7c80d151/attachment.patch>
More information about the llvm-dev
mailing list