This is the mail archive of the gdb@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: -var-list --locals proposal


> From: Vladimir Prus <ghost@cs.msu.su>
> Date: Fri, 5 Jan 2007 23:03:59 +0300
> 
> I propose to introduce a new command:
> 
> 	-var-list --locals <frame>

As you explain further, this will actually list all variables that are
visible in the current scope.  So a better name for this command would
be something like "-var-list --scope FRAME" or "-var-list --frame FRAME".

> I think that to avoid creating and destroying variable
> objects as we step though inner blocks, -var-list should construct
> varobjs for all variables in all blocks of a function.

Won't lazy creation (on as needed basis) be a better strategy?


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