This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MI: type prefixes for values
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 17 Mar 2006 14:32:43 -0500
- Subject: Re: MI: type prefixes for values
- References: <dt43qh$sns$1@sea.gmane.org> <17427.54333.236860.258115@kahikatea.snap.net.nz>
On Sun, Mar 12, 2006 at 08:56:45PM +1300, Nick Roberts wrote:
> Here's a patch that doesn't print the type with the value for
> -stack-list-arguments and -stack-list-list-locals (they both use
> list_args_or_locals).
This seems plausible to me. I checked what the change actually
does: it goes through LA_VAL_PRINT instead of LA_VALUE_PRINT. For
C, the differences between the two are (A) the types of pointers
and references are printed, and (B) "set print object" is honored.
We don't want (A), and (B) is pretty rusty now since we don't test
it and it doesn't get used much, so I'm not worried about it.
Are there any compatibility concerns, i.e. should we make this change
for mi3 only? Could some frontend rely on these outputs? I don't
think Eclipse does - it looks like it has some substantial code
to skip them, though, so at least it is aware of them.
--
Daniel Jacobowitz
CodeSourcery