Re: [PATCH] MI: Add value field to output of -var-create

Nick Roberts
2007-01-05T21:30:22Z

> Seems fine to me, after we work out what to do with the testsuite. I
> went to check whether this should be PRINT_ALL_VALUES or
> PRINT_SIMPLE_VALUES but it seems fine the way you've got it - I wish
> I could remember the rational for PRINT_SIMPLE_VALUES properly.

I think it was a diplomatic solution to a technical problem.
PRINT_SIMPLE_VALUES only makes sense to me for -stack-list-locals. Even
this case will be unimportant when "-var-list --locals" is implemented.

> One alternative that does not affect the testsuite would be to add
> an --all-values option to -var-create.

Ah!, the Emacs solution; a switch for everything. I don't like it. This
would mean that the frontend end would have to work out which versions of
GDB have this option and which don't.

--
Nick http://www.inet.net.nz/~nickrob