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: [PATCH] [D] Add support for printing D types.


On 17 February 2016 at 17:12, Pedro Alves <palves@redhat.com> wrote:
> Hi Iain,
>
> On 01/30/2016 04:29 PM, Iain Buclaw wrote:
>
>> gdb/ChangeLog:
>>
>
>>       * d-lang.c (d_language_defn): Change c_print_type to d_print_type.
>>       * d-lang.h (d_print_type): New declaration.
>>       * d-typeprint.c: New file.
>>
>
> These bits you can clearly self approve.
>

OK, however, I do try to hold back on bigger changes, as there may
have been something i overlooked.

>
>>       * Makefile.in (SFILES): Add d-typeprint.c
>>       (COMMON_OBJS): Add d-typeprint.o
>>       * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS also for
>>       classes in D language.
>
> FAOD, these bits are OK.
>

Thanks.

>
>> gdb/testsuite/ChangeLog:
>>
>>       * typeprint.S: New file.
>>       * typeprint.exp: New file.
>
> But these can be written in D now, right?
>

I guess so, would this be the preferred method for tests that use simple code?

I will redo this patch anyway, I noticed it's an old version with a
FIXME that I forgot to remove.

Regards,
Iain.


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