* mdb-debug-info32.s, mdb-debug-info64.s: New files.
Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
seperate `.mdb_debug_info' section, so we can access it from the
debugger even if the binary is stripped.
* debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
from the `.mdb_debug_info' here to prevent the linker from
removing that section.
* Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
mdb-debug-info64.s.
svn path=/trunk/mono/; revision=69937
2006-12-22 Martin Baulig <martin@ximian.com>
- * mdb-debug-info.s: New file. Put a pointer to the
- `MONO_DEBUGGER__debugger_info' into a seperate `.mdb_debug_info'
- section, so we can access it from the debugger even if the binary
- is stripped.
+ * mdb-debug-info32.s, mdb-debug-info64.s: New files.
+ Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
+ seperate `.mdb_debug_info' section, so we can access it from the
+ debugger even if the binary is stripped.
* debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
from the `.mdb_debug_info' here to prevent the linker from
removing that section.
- * Makefile.am (mono_debugger_sources): Add mdb-debug-info.s
+ * Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
+ mdb-debug-info64.s.
2006-12-19 Robert Jordan <robertj@gmx.net>
test_sources2 = generics.2.cs il2tests.2.il
if MONO_DEBUGGER_SUPPORTED
-mono_debugger_sources = debug-debugger.c debug-debugger.h mdb-debug-info.s
+if AMD64
+mono_debugger_arch_sources = mdb-debug-info64.s
+else
+mono_debugger_arch_sources = mdb-debug-info32.s
+endif
+mono_debugger_sources = debug-debugger.c debug-debugger.h $(mono_debugger_arch_sources)
else
mono_debugger_sources =
endif
+++ /dev/null
-.section .mdb_debug_info, "aw", @progbits
-.global MONO_DEBUGGER__debugger_info
-.global MONO_DEBUGGER__debugger_info_ptr
-MONO_DEBUGGER__debugger_info_ptr:
- .uleb128 MONO_DEBUGGER__debugger_info
--- /dev/null
+.section .mdb_debug_info, "aw", @progbits
+.global MONO_DEBUGGER__debugger_info
+.global MONO_DEBUGGER__debugger_info_ptr
+MONO_DEBUGGER__debugger_info_ptr:
+ .long MONO_DEBUGGER__debugger_info
--- /dev/null
+.section .mdb_debug_info, "aw", @progbits
+.global MONO_DEBUGGER__debugger_info
+.global MONO_DEBUGGER__debugger_info_ptr
+MONO_DEBUGGER__debugger_info_ptr:
+ .quad MONO_DEBUGGER__debugger_info