This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gdb problem
- From: Ian Lance Taylor <iant at google dot com>
- To: Anna Sidera <eep6sa1 at ucy dot ac dot cy>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 28 Dec 2008 14:13:25 -0800
- Subject: Re: gdb problem
- References: <f6258ca714c1e.49578be9@ucy.ac.cy>
Anna Sidera <eep6sa1@ucy.ac.cy> writes:
> I am trying to use gdb and I get the following error. I can not go to gdb prompt. Can you please advise?
>
> 3:19pm sidera@diana:>
> 3:19pm sidera@diana:>
> 3:19pm sidera@diana:>gcc -g -lm myprogram.c
> 3:22pm sidera@diana:>gdb a.out
> GNU gdb 6.0
> Copyright 2003 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.8"...Bus error (core dumped)
I would try a newer version of gdb; your version is five years old.
If that doesn't help, ask on a gdb mailing list; see
http://sourceware.org/gdb . Certainly nothing that the compiler does
should cause gdb to crash.
Ian