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: [PATCH] keep-variable command


On Thu, Nov 17, 2005 at 09:22:02PM +0200, Eli Zaretskii wrote:
> > Date: Thu, 17 Nov 2005 11:26:07 +0000
> > From: Andrew STUBBS <andrew.stubbs@st.com>
> > Cc: gdb-patches@sources.redhat.com
> > 
> > Currently _all_ convenience variables are deleted when the symbol-file 
> > command is used. The file command also uses symbol-file.
> 
> I think this is a terrible misfeature that we need to fix ASAP,
> regardless of what we do with variables which depend on the symbol
> table.

Lord knows it drives me bonkers.  I didn't know exactly when it
happened (never bothered to look it up).  I seem to recall that you can
also crash GDB a number of different ways with this, which are probably
separate bugs.  This is a bit garbled of a report, I realize; I'm
always neck-deep in something else when it happens...

I have found that GDB will unreliably segfault when I set a watchpoint
using a convenience (or history; are those handled the same way?) variable
and then recompile and rerun the program, causing it to be reloaded.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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