No locals displayed when debugging shared object class methods
Iztok Kobal
IKobal at netscape.net
Wed Jan 8 14:07:08 UTC 2003
It is not quite KDevelop related question but anyway - maybe somebody is
smart enough to know the answer.
System: i686, Linux SuSE 8.1, kernel 2.4.19, gcc-3.2, gdb-5.2.1
Problem: Either gcc does not generate debug info for local variables
either gdb does not show them
I have project (created with KDevelop-2.1.3, automake-1.6.3,
autoconf-2.53) using shared library which was also Kdevelop-2.1.3 etc.
project and configured with exception handling and built with
--enable-debug switch. When debugging and stepping into the shared
object's class method no locals except function arguments are displayed
- and those as locals. The same happens with the class methods which are
statically linked.
"Normal" functions (not class methods) display locals and arguments
correctly.
I have posted similar question to the GDB and GCC maillists since I can
not determine what is responsible for this behaviour.
I hope it is the matter of compiler switch and not another bug since I
am getting tired of all those bugs in gcc and gdb lately.
I've got prepared simple project which shows this behaviour and I will
post it to somebody that cares.
Indeed, I have another question related to the KDevelop's debugger. When
adding the variable as the watch into the debugger's data window, is it
ever possible to remove it from there ? In earlier KDevelop versions
there was a watch's right-click menu option to remove it but from the
2.1.2 on it is removed. Why ?
I.
More information about the KDevelop-devel
mailing list