This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] Have block_innermost_frame start from selected frame
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Paul Hilfinger <Hilfinger at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 28 Dec 2011 14:01:30 +0100
- Subject: Re: [RFA] Have block_innermost_frame start from selected frame
- References: <20111227195809.672D892BF6@kwai.gnat.com>
On Tue, 27 Dec 2011 20:58:09 +0100, Paul Hilfinger wrote:
> The GDB documentation suggests that the notation FOO::x is intended for static
> variables, but in fact it also "works" for local variables as well.
If you wish, you can specify a static variable in a particular
function or file, using the colon-colon (`::') notation:
In such case the doc should be updated, particularly that it has became now
related to the currently selected frame.
> This change causes block_innermost_frame to start looking from the selected
> frame, if there is one.
It may be all even more tricky than it was before. What about using query()
if such reference is ambiguous?
It may not be so easy determining the ambiguity. Something like checking
symbol_read_needs_frame() and then also checking if there exist >= 2 different
frames containing the block.