This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Debugging on PowerPC linux (fixed!)
- To: java at gcc dot gnu dot org
- Subject: Debugging on PowerPC linux (fixed!)
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Sat, 10 Nov 2001 12:35:53 +1300
I figured out what causes debugging problems on linux-ppc. For some
reason, PPC uses the DWARF2 debugging format instead of the traditional
Stabs as used on other linux's.
GDB (from CVS) doesn't seem to have very good support for DWARF2, and in
fact it doesn't work at all with the latest DWARF2 changes in mainline GCC.
I made this change:
Index: sysv4.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.69
diff -u -r1.69 sysv4.h
--- sysv4.h 2001/11/07 20:49:41 1.69
+++ sysv4.h 2001/11/10 00:31:49
@@ -883,7 +883,7 @@
/* Use DWARF 2 debugging information by default. */
#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
/* Historically we have also supported stabs debugging. */
#define DBX_DEBUGGING_INFO
And suddenly debugging my Java code works much better!
regards
Bryce.