This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Can't set bkpt at throw statement
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: gdb at sources dot redhat dot com, allenh at eecs dot berkeley dot edu
- Date: Thu, 12 Aug 2004 08:16:04 -0400
- Subject: Re: Can't set bkpt at throw statement
- References: <411AC515.4080002@eecs.berkeley.edu>
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