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: Variable identification (Was: [RFA] Don't reset watchpoint block on solib load.)


> From: Michael Snyder <msnyder@specifix.com>
> Cc: gdb-patches@sources.redhat.com
> Date: Thu, 29 Nov 2007 17:09:46 -0800
> 
> I haven't followed the discussion closely, but
> shouldn't it be up to the GUI to keep such persistant
> info?  It's nothing to do with gdb, really.  It's the
> GUI's state.

I'm not sure what you are talking about.  This discussion mentioned
two different aspects of watchpoints: I wanted the watchpoints on
automatic variables defined in `main' to not be deleted when the
program exits, and Vlad was talking about automatic variables in
general (which hits the problem with recursive invocations of the same
function).  I submit that the former is how GDB should behave, and
that the fact it doesn't today is a misfeature, unrelated to the GUI
state.  To a programmer, automatic variables in `main' are almost
indistinguishable from static variables, so watchpoints on both kinds
should behave the same.


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