This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Have block_innermost_frame start from selected frame


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.

refrenced doc:
	If you wish, you can specify a static variable in a particular
	function or file, using the colon-colon (`::') notation:
		FILE::VARIABLE
		FUNCTION::VARIABLE

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.


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]