[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

reading data members: `this' reference

From: Ilya N. Golubev
Subject: reading data members: `this' reference
Date: Mon, 12 Sep 2005 18:41:06 -0000

Version: 6.3

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

(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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]