This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/9] directly recurse using c_type_print
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 18 Sep 2012 07:38:04 -0700
- Subject: Re: [PATCH 3/9] directly recurse using c_type_print
- References: <87har9is99.fsf@fleche.redhat.com>
> This is a minor fix to change the C type printer to directly recurse
> rather than doing so via the generic type_print function. This allows
> us to pass the flags through more easily.
I've always wondered why we seem to be consistently recursing via
the generic entry point. The same happens with the expression evaluator,
for instance, at least for the Ada evaluator. I don't see a testcase
were recursing directly rather than via the generic interface would
be incorrect. Even in the case where the Ada evaluator calls the C
(aka "standard") evaluator, there is no reason that I can think of
that the evaluator would need to revert back to Ada for that subexp.
--
Joel