gdb problem on Solaris SPARC
Stephen A. Witt
sawitt@electra.fu.hac.com
Thu Apr 1 00:00:00 GMT 1999
On Fri, 19 Feb 1999, Stephen A. Witt wrote:
> Machine: sun4m
> OS: Solaris 2.6
> cc: gcc 2.8.1
> gdb: gdb 4.17 sparc-sun-solaris2.6
>
> I'm having a problem using gdb on the above system. I compile a simple
> hello.c with:
>
> $ make gcc -g -DXCONF -ansi -c hello.c -o hello.o hello.c:
> In function `main':
> hello.c:6: warning: return type of `main' is not `int'
> gcc -o hello hello.o
>
>
>
> Then run gdb:
>
> $ gdb hello
> GNU gdb 4.17 Copyright 1998 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.6"...
>
> I'm sorry, Dave, I can't do that. Symbol format `elf32-sparc' unknown.
> No display number 0.
> Disabling display 0 to avoid infinite recursion.
> (gdb) q
>
>
>
> So apparently gdb isn't able to read the executable because it is in an
> unrecognized format. Is there a way to solve this problem?
>
> Thanks...
>
To follow up on my own message, just for grins I build gdb 4.16 to see if
there was any difference. gdb 4.16 does not seem to have this problem and
works perfectly [minus any 4.17 bugfixes :)].
More information about the Gdb
mailing list