diff options
author | Fred Fish <fnf@specifix.com> | 2001-12-09 07:26:47 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2001-12-09 07:26:47 +0000 |
commit | f5ef7c67f8899c3d822c64e9317c62b55c9d2623 (patch) | |
tree | 1cf4c3fb5326e18c5cbed772047760d7b5fa7ba9 /gdb | |
parent | 2557de7c29c1d71335f131212ff3c87a4ce4550d (diff) | |
download | gdb-f5ef7c67f8899c3d822c64e9317c62b55c9d2623.zip gdb-f5ef7c67f8899c3d822c64e9317c62b55c9d2623.tar.gz gdb-f5ef7c67f8899c3d822c64e9317c62b55c9d2623.tar.bz2 |
Approved by Jim Blandy:
2001-12-08 Fred Fish <fnf@redhat.com>
* dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
init_type().
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4236c6c..a8576c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-12-08 Fred Fish <fnf@redhat.com> + + * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags. + For unsigned types set TYPE_FLAG_UNSIGNED and pass it to + init_type(). + 2001-12-08 Daniel Jacobowitz <drow@mvista.com> * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h). diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7e1e2ce..17d81f9 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2939,18 +2939,18 @@ read_base_type (struct die_info *die, struct objfile *objfile) if (attr && DW_STRING (attr)) { enum type_code code = TYPE_CODE_INT; - int is_unsigned = 0; + int type_flags = 0; switch (encoding) { case DW_ATE_address: /* Turn DW_ATE_address into a void * pointer. */ code = TYPE_CODE_PTR; - is_unsigned = 1; + type_flags |= TYPE_FLAG_UNSIGNED; break; case DW_ATE_boolean: code = TYPE_CODE_BOOL; - is_unsigned = 1; + type_flags |= TYPE_FLAG_UNSIGNED; break; case DW_ATE_complex_float: code = TYPE_CODE_COMPLEX; @@ -2963,14 +2963,14 @@ read_base_type (struct die_info *die, struct objfile *objfile) break; case DW_ATE_unsigned: case DW_ATE_unsigned_char: - is_unsigned = 1; + type_flags |= TYPE_FLAG_UNSIGNED; break; default: complain (&dwarf2_unsupported_at_encoding, dwarf_type_encoding_name (encoding)); break; } - type = init_type (code, size, is_unsigned, DW_STRING (attr), objfile); + type = init_type (code, size, type_flags, DW_STRING (attr), objfile); if (encoding == DW_ATE_address) TYPE_TARGET_TYPE (type) = dwarf2_fundamental_type (objfile, FT_VOID); } |