This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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 :)].