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
> 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?
It seems unfortunate to me that the output from -var-create gets tested so many
times but Daniel has just said that mi_gdb_test should really should used even
if you don't care about the result. Real tests for -var-create e.g in
mi-var-cmd.exp need to be looked at more carefully (some test when -var-create
fails) but, sure, mi_create_varobj could be used when you don't care about the
result.
--
Nick http://www.inet.net.nz/~nickrob