Re: breakpoints and symbol examination problems

Daniel Jacobowitz
2008-03-11T00:33:02Z

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