Version: 6.3

On request will compose reproducing instructions with a smaller code
example.  For now, observed that on code of `kdecore' from kdelibs
3.2.

(gdb) p(NETRootInfoPrivate*)(*(void**)($esp)-0x28)
$69 = (NETRootInfoPrivate *) 0x810f5c0
(gdb) p $69->workarea
Variable "this" is not available.

`workarea' is a (data) field of `NETRootInfoPrivate' structure.
Reading it should require nothing except address of that structure
variable.  But, instead, for some reason gdb tries to use `this'
(pointer to class instance passed to class method that currently
executes) - which is indeed not available at the moment due to some
compiler optimizations.  The worst is that the whole gdb expression
evaluation terminates, not just error / warning is issued.


_______________________________________________
Bug-gdb mailing list
Bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb

Reply via email to