This is the mail archive of the gdb@sourceware.org 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: breakpoints and symbol examination problems


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


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