This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: breakpoints and symbol examination problems
- From: Daniel Jacobowitz <drow at false dot org>
- To: Brian Budge <brian dot budge at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 10 Mar 2008 20:32:38 -0400
- Subject: Re: breakpoints and symbol examination problems
- References: <5b7094580803101705m7bc6e8ffqa480a74d9b0ab548@mail.gmail.com>
On Mon, Mar 10, 2008 at 05:05:17PM -0700, Brian Budge wrote:
> Hi all -
>
> I'm having an issue with reaching breakpoints and examining symbols in
> my C++ code via gdb. I can set breakpoints in my .cpp files and
> actually reach these, but if I put breakpoints in included header
> files (in template code), my program will run right through the
> breakpoints.
Try a snapshot of the current CVS HEAD or the 6.8 branch. This should
be fixed.
> Additionally, I can't seem to examine any "stack" variables once in
> these template functions. I can see member variables, global
> variables, and function parameters.
This may be fixed, or it may be a compiler bug. GCC is not very good
about emitting local variable information in optimized code.
--
Daniel Jacobowitz
CodeSourcery