Evaluating an expression in a given scope
Daniel Jacobowitz
drow@false.org
Wed Sep 7 13:57:00 GMT 2005
On Wed, Sep 07, 2005 at 04:39:52PM +0400, Vladimir Prus wrote:
>
> Hello!
>
> Does gdb provides a clean way to evaluate an expression in a given scope
> (file:line)?
BTW: unlike the other post, this is something I believe GDB should do.
In fact, GDB already needs to do it, for much the same reasons -
restoring breakpoints as shared libraries are loaded and unloaded.
We just don't have an interface for it yet. $pc isn't a great way to
identify scopes either.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb
mailing list