This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't set bkpt at throw statement


Thanks. I'll try updating gcc. Here are the versions of gdb, gcc, o/s:

fortytwo[1001]$ gdb --version
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 "i586-suse-linux".


fortytwo[1002]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)


fortytwo[1004]$ uname -a
Linux fortytwo.eecs.berkeley.edu 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686 i686 i386 GNU/Linux


-Allen

Michael Chastain wrote:

Your program works fine for me on:

  native i686-pc-linux-gnu
  red hat 8.0
  gcc 3.3.4
  binutils 2.15
  gdb 6.2

I also tested with gcc 3.4.1 and gcc 3.5.0 20040811 (experimental).
All worked fine.

However I see the bad breakpoint on Fred.cpp:12 with

  native i686-pc-linux-gnu
  red hat 8.0
  gcc 3.2-7-rh
  binutils 2.13.90.0.2-2-rh
  gdb 6.2

  (gdb) break Ethel.cpp:12
  Breakpoint 1 at 0x80488b5: file Ethel.cpp, line 12.
  (gdb) break Fred.cpp:12
  Note: breakpoint -1 (disabled) also set at pc 0x0.
  Breakpoint 2 at 0x0: file Fred.cpp, line 12.

Can you report:

  output of "gdb --version"
  output of "gcc -v"
    (or if the C++ compiler is not gcc, the equivalent)
  your os name and version number

I think you will have to install a newer gcc.
It's not hard, if you use the "--prefix" option to build gcc.

Michael C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]