This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] MI: lvalues and variable_editable
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: Nick Roberts <nickrob at snap dot net dot nz>, gdb-patches at sources dot redhat dot com
- Date: Thu, 1 Nov 2007 11:39:55 -0400
- Subject: Re: [PATCH] MI: lvalues and variable_editable
- References: <18210.27153.559569.601092@kahikatea.snap.net.nz> <200710311458.58112.ghost@cs.msu.su> <18217.23406.21406.920384@kahikatea.snap.net.nz> <200710312247.40840.ghost@cs.msu.su>
On Wed, Oct 31, 2007 at 10:47:40PM +0300, Vladimir Prus wrote:
> I'm not sure that's possible. If you create varobj for *foo, and foo changes
> to point to inaccessible memory, then assignment to *foo will fail, but I
> don't know any mechanism in gdb that will tell you that without actually
> trying assignment.
Yes, there is no way to be sure without trying to write. Which we
shouldn't unless the user asked us to, of course.
--
Daniel Jacobowitz
CodeSourcery