Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Cannot see local variables in C++ constructors
@ 2009-02-20 18:00 Peter Wainwright
  2009-02-20 18:06 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Wainwright @ 2009-02-20 18:00 UTC (permalink / raw)
  To: gdb

I'm using gdb 6.8 with C++ code compiled by g++ 4.2.4 on Ubuntu 8.04.

I cannot print the value of local variables inside constructors (e.g. I
get 'No symbol "wire" in current context').  The code is compiled with
-g and NO optimization.

This symptom seems similar to
http://sourceware.org/bugzilla/show_bug.cgi?id=8246

But that's a really ancient bug (2003!): has anyone else seen this kind
of trouble recently?


Peter Wainwright


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-20 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-20 18:00 Cannot see local variables in C++ constructors Peter Wainwright
2009-02-20 18:06 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox