|
gdb: "classname does not have any method named..."
Hi all,
Programming in C++ on Fedora 13, I have a console app with code spread throughout a half dozen files.
Debugging with gdb, I want to list the code from a class-member function so, at the gdb prompt I type:
list 'classn
and when I press <tab>, gdb completes the classname for me:
list 'classname
Next, I add the scope resolution operator and then type the first few characters of the function name and again press <tab>. gdb completes the function name and adds on the parameters list and even puts the final single-quote at the end of the line:
list 'classname::functionname(paramater list...)'
...but when I press enter I get an error message stating that "classname does not have any method named functionname" which seems like a strange complaint considering that gdb did most of the typing.
Similarly, trying to set a breakpoint at the top of this function yields this:
"Make breakpoint pending on future shared library load?"
As an aside: I am compiling all units with the -gstabs flag ( plain ol' -g didn't seem to get the job done.)
Thanks
|