[llvm-commits] compilation issue in __jit_debug_descriptor
Eli Bendersky
eliben at google.com
Wed Dec 19 10:17:14 PST 2012
On Wed, Dec 19, 2012 at 12:07 AM, Demikhovsky, Elena
<elena.demikhovsky at intel.com> wrote:
> Hi,
>
> I want to remove "static" form __jit_debug_descriptor, because gcc adds a C++ mangling prefix in spite of "extern "C"" attribute.
> Without "staic" the symbol name comes as is and gdb works.
>
> Eli,
> Could you, please, look at this? As far as I remember, it was your code.
>
Hi Elena,
Andy Kaylor (CCd) is the code owner for these parts. I don't really
understand the problem you're describing (and why it was discovered
just now), can you elaborate?
Eli
> Thanks.
>
> Index: lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp
> ===================================================================
> --- lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp (revision 170503)
> +++ lib/ExecutionEngine/RuntimeDyld/GDBRegistrar.cpp (working copy)
> @@ -44,7 +44,7 @@
> // We put information about the JITed function in this global, which the
> // debugger reads. Make sure to specify the version statically, because the
> // debugger checks the version before we can set it during runtime.
> - static struct jit_descriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
> + struct jit_descriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
>
> // Debuggers puts a breakpoint in this function.
> LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code() { }
>
> - Elena
>
More information about the llvm-commits
mailing list