This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Debugging on PowerPC linux (fixed!)


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]