This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Re-parse display expressions if architecture changes
- From: Tom Tromey <tromey at redhat dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 21 Dec 2009 13:32:48 -0700
- Subject: Re: [rfc] Re-parse display expressions if architecture changes
- References: <200912211533.nBLFX5ux028195@d12av02.megacenter.de.ibm.com>
- Reply-to: tromey at redhat dot com
>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
Ulrich> The patch below implements this by ensuring the expression is
Ulrich> re-parsed if the currnet architecture is different from the one
Ulrich> the expression was originally parsed in.
This seems like a reasonable idea to me.
Ulrich> Any comments? I'm planning to apply this next week.
I think this needs to xfree the old expression to avoid a memory leak.
Tom