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: PR8554: New command to save breakpoints to a file


On Thursday 15 April 2010 19:59:17, Stan Shebs wrote:
> I can't remember if we've discussed this idea before, but a simple way 
> to handle in the future might be simply to introduce a syntax for 
> referring to specific locals - function:::local, file:line:::local, for 
> instance.  You get a sal that maps to a block, then can find the block's 
> symbol with that name.  If the name also occurs in superblocks, you 
> could make a policy decision as to whether to include the first found, 
> or all found.

Dunno.  Maybe we've read it over in HPDF's parallel debugger's "standard",
or a PR or something.  Maybe Frysk implemented it?  It's certainly not
a novel idea.  ;-)

Anyway, that handles the symbol scoping, not the fact that to set
a watchpoint, the frame where the local is defined needs to be 
active, otherwise, you can't read the initial value for
comparision and change detection.  Certainly more would have
to be changed to make it work.

I certainly think that the feature is quite useful even
with the locals caveat.

-- 
Pedro Alves


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