This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI: type prefixes for values


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]