This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Evaluating an expression in a given scope
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 7 Sep 2005 09:57:40 -0400
- Subject: Re: Evaluating an expression in a given scope
- References: <dfmn2o$r1t$1@sea.gmane.org>
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