This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit/Ada] General ada-valprint improvements
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 08 Jan 2014 08:41:39 -0700
- Subject: Re: [commit/Ada] General ada-valprint improvements
- Authentication-results: sourceware.org; auth=none
- References: <1389068515-10129-1-git-send-email-brobecker at adacore dot com> <87r48jhfa8 dot fsf at fleche dot redhat dot com> <20140108113517 dot GL3802 at adacore dot com>
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
>> I'm curious to know what differences you are thinking of.
Joel> Sure!
Joel> valprint.c:val_print does a few things that value_print does not.
Joel> For instance, it handles TYPE_STUB, options->summary, etc.
Thanks.
Joel> For Ada, I think untangling the extra stuff in ada_value_print
Joel> could be done by simply splitting it in two. For val_print,
Joel> I haven't even really looked at it yet. Just one of those many
Joel> things at the back of my mind.
I have an ancient branch where I took a stab at removing val_print.
It's a reasonably large patch and still doesn't even compile:
30 files changed, 262 insertions(+), 486 deletions(-)
It's quite a big job and due to the way that most languages wind up
deferring to the C printer, I didn't see a nice way to do it
incrementally.
Tom