[llvm-commits] compilation issue in __jit_debug_descriptor

Demikhovsky, Elena elena.demikhovsky at intel.com
Wed Dec 19 00:07:19 PST 2012


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.

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


---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.





More information about the llvm-commits mailing list