This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 3/8] Add output styles to gdb
- From: Tom Tromey <tom at tromey dot com>
- To: Simon Marchi <simark at simark dot ca>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Sat, 06 Oct 2018 13:06:23 -0600
- Subject: Re: [RFC 3/8] Add output styles to gdb
- References: <20180906211303.11029-1-tom@tromey.com> <20180906211303.11029-4-tom@tromey.com> <c8c21df4-5ce3-2bec-72cb-bb14255d31ae@simark.ca>
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
Simon> Could we pass an additional enum parameter to do_field_string to
Simon> indicate the type of element this field represents? If this
Simon> parameter has a default value of "NOTHING", then we can add then
Simon> incrementally.
Yes, either this or, as you mentioned in another note, passing the style
directly, could be done. I suppose I tend to lean more toward the
semantic approach than the style approach, because maybe having some
kind of "type" attached to a field could be useful in other situations.
Be sure to read this as well:
https://sourceware.org/ml/gdb-patches/2018-10/msg00107.html
It presents another alternative -- one I rejected but maybe it can be
rehabilitated.
These questions about the overall approach and the API are the main
things to resolve up front, since they have the highest cost to change.
Tom