<div dir="ltr"><div><div>Hi,<br><br></div>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.<br>
<br>This patch forces it to leave the call using the method described here in the 'noinline' section:<br><br><a href="http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html">http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html</a><br>
<br></div>Cheers,<br>Andrew<br><br></div>