This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] MI: Add value field to output of -var-create
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: Nick Roberts <nickrob at snap dot net dot nz>, gdb-patches at sources dot redhat dot com
- Date: Thu, 04 Jan 2007 23:19:55 +0300
- Subject: Re: [PATCH] MI: Add value field to output of -var-create
- References: <17818.12006.696879.216415@kahikatea.snap.net.nz>
Nick Roberts wrote:
>
> This patch just adds the value field to the output of var-create so that
> the frontend doesn't need to issue another command to find out what it
> is.
>
> If approved, I'll change the tests and documentation accordingly.
I think this is a good change in general. However, the problem is that
a lot of tests hardcode the output from -var-create, and are broken with
this change. I think that instead of adding more hardcoding, we'd
need to replace all creation of varobjs with calls to mi_create_varobj.
Would you be willing to do that?
- Volodya