On Wednesday 19 August 2009 14:09:30 you wrote:
I use gdb 6.8.50.20081120-cvs in openSUSE 11.1 x86 in order to debug a C++ program. When entering into a member function (of some C++ class) I cannot print a local variable with the following syntax:
(gdb) p n No symbol "n" in current context.
using
(gdb) p 'n' $1 = 110 'n'
seems to work. However, debugging in Eclipse Galileo CDT local variables are no longer displayed (when pointing the mouse to one variable in the source code). Thus, it seems that Eclipse is not aware of the new syntax for print function used in gdb.
Is there a reason for this behavior of gdb ?
Replying to myself: there is no new syntax for print function in gdb. Actually there seems to be a bug in gcc4.3 compiler not allowing to print local variables from C++ constructors -- Dr. Bogdan Cristea http://cristeab.googlepages.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org