diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-12-26 12:36:18 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-12-26 12:36:18 +0000 |
commit | 1760d9d58004f209979ade8c4d48993cfd8372be (patch) | |
tree | 11b7111358e189bd19c7d20e04abd4f0d0669327 /gdb | |
parent | a6a5a94583f5f0fe8cf8f000bfbc613e57213534 (diff) | |
download | gdb-1760d9d58004f209979ade8c4d48993cfd8372be.zip gdb-1760d9d58004f209979ade8c4d48993cfd8372be.tar.gz gdb-1760d9d58004f209979ade8c4d48993cfd8372be.tar.bz2 |
* dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 869fb39..75db191 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-12-26 Joel Brobecker <brobecker@adacore.com> + + * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion. + 2007-12-26 Luis Machado <luisgpm@br.ibm.com> * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index e47ef93..689c53f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -5007,11 +5007,11 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) type_flags |= TYPE_FLAG_UNSIGNED; break; case DW_ATE_signed_char: - if (cu->language == language_ada && cu->language == language_m2) + if (cu->language == language_ada || cu->language == language_m2) code = TYPE_CODE_CHAR; break; case DW_ATE_unsigned_char: - if (cu->language == language_ada && cu->language == language_m2) + if (cu->language == language_ada || cu->language == language_m2) code = TYPE_CODE_CHAR; type_flags |= TYPE_FLAG_UNSIGNED; break; |