CVS MinGW (Crossed-)Native Compiler is Toast
Ranjit Mathew
rmathew@hotmail.com
Mon Sep 22 06:44:00 GMT 2003
> On Monday, Sep 22, 2003, at 10:46 Pacific/Auckland, Mohan Embar wrote:
>>>I usually have terrible luck with gdb on Windows.
Why? Aeons ago, I used GDB 5.2.1 for MinGW32 to
step through the GCC front-end and it was not
very difficult and quite helpful, AFAIR.
The only (easily surmountable) problem was that
since I used to build crossed-native GCJs, the
embedded source file names were of the form
"/extra/src/gcc/gcc-ss/gcc/java/xyz.c" (corresponding
to my Linux partition), so to see and step
through the actual source from within GDB,
I had to mirror the same source hierarchy
under the drive on which I was debugging
(e.g. E:\extra\src\gcc\gcc-ss\gcc\java\xyz.c).
>>I modified tree_class_check_failed in gcc/tree.c and added the
>>line debug_tree(node); before the call to internal_error.
Much better than this is to use GDB and wait for the
fault to happen and then do a "bt" (backtrace) using
"p debug_tree (foo)" on any suspicious tree nodes.
Best of Luck!
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/
More information about the Java
mailing list