This is the mail archive of the gdb-patches@sources.redhat.com 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]

[RFA/dwarf2] Set language to Ada for Ada compilation units


Hello,

  Re: http://sources.redhat.com/ml/gdb/2004-10/msg00208.html

This patch is almost obvious: Set the appropriate language when
processing an Ada CU. I didn't notice this because I used to use
an older compiler that still used stabs as the default debugging
format (we use the source filename extension in this case).

2004-10-07  Joel Brobecker  <brobecker@gnat.com>

        * dwarf2read.c (set_cu_language): Set language to Ada for
        DW_LANG_Ada83 and DW_LANG_Ada95.

Tested on x86-linux, with GNAT (with a gcc-34 backend). Fixes
gdb.ada: null_record.exp: ptype on null record.

OK to apply?

Thanks,
-- 
Joel

Attachment: dwarf2read.c.diff
Description: Text document


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