[commit/Ada] Add recognition of Wide_Wide_Character types

Joel Brobecker brobecker@adacore.com
Mon Dec 24 17:17:00 GMT 2007


After my other recent change:

  Re: [RFC/RFA] Cleaner handling of character entities ?
  http://www.sourceware.org/ml/gdb-patches/2007-12/msg00405.html

This change is not really necessary as long as DWARF is being used.
But we still support some platforms where we are stuck on stabs,
and this little patch helps a little bit.

2007-12-24  Joel Brobecker  <brobecker@adacore.com>

        * ada-lang.c (ada_is_character_type): Add recognition of type
        "Wide_Wide_Character".

Tested on x86-linux using -gstabs+. Checked in.
Testcase to follow soon.

-- 
Joel
-------------- next part --------------
Index: ada-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-lang.c,v
retrieving revision 1.111
diff -u -p -r1.111 ada-lang.c
--- ada-lang.c	24 Dec 2007 06:29:27 -0000	1.111
+++ ada-lang.c	24 Dec 2007 16:50:21 -0000
@@ -7301,6 +7301,7 @@ ada_is_character_type (struct type *type
               || TYPE_CODE (type) == TYPE_CODE_RANGE)
           && (strcmp (name, "character") == 0
               || strcmp (name, "wide_character") == 0
+              || strcmp (name, "wide_wide_character") == 0
               || strcmp (name, "unsigned char") == 0));
 }
 


More information about the Gdb-patches mailing list