jon493 -> Can gdb debug a core file (or not)? (Nov. 15, '05, 3:35:28 AM) |
In use: The gdb, gcc supplied with SFU
I wrote a simple C application that caused an Access Violation (Segmentation Fault for the Windowsly challenged). So I plopped the core file into gdb and the following ensued:
GNU gdb 2002-11-11-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-interix3"...
/dev/fs/C/gnu2.intel/egcs.source/gdb/coffread.c:830: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected. Further
debugging may prove unreliable.
Quit this debugging session? (y or n) y
Create a core file of GDB? (y or n) y
So now I gdb'd the gdb core file:
GNU gdb 2002-11-11-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-interix3"...
/dev/fs/C/gnu2.intel/egcs.source/gdb/coffread.c:830: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected. Further
debugging may prove unreliable.
Quit this debugging session? (y or n) y
Create a core file of GDB? (y or n) n
Amazing isn't it? It seems to be happening no matter what core file I feed it.
Even on a Pentium III !
Regular debugging is just fine: it just chokes on core files. |
|
|
|