Using a program compiled using GCC 4.2.1, I am unable to debug using gdb 6.4 or gdb 6.6. This happens with both versions:

% gdb utilities/gm
GNU gdb 6.4
Copyright 2005 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 "sparc-sun-solaris2.9"...
(gdb) b main
Breakpoint 1 at 0x20380: file 
/home/bfriesen/src/graphics/GraphicsMagick-head/utilities/gm.c, line 61.
(gdb) r
Starting program: /scratch/bfriesen/build/GraphicsMagick-16-static/utilities/gm
elfread.c:342: internal-error: sect_index_rodata not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
elfread.c:342: internal-error: sect_index_rodata not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
zsh: segmentation fault (core dumped)  gdb utilities/gm

I am able to debug a trivial program with gdb 6.4.

Ideas?

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



_______________________________________________
bug-gdb mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gdb

Reply via email to