diff options
author | Fred Fish <fnf@specifix.com> | 1993-03-03 02:09:02 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-03-03 02:09:02 +0000 |
commit | 45364c8a2a8b0bbdac88b937f30459281fc4f00d (patch) | |
tree | c765dd97caffd7ec2f24294b919cb874099118d7 /gdb/c-exp.y | |
parent | 312bef9d216edd079836fb258a0c234f169f65ca (diff) | |
download | gdb-45364c8a2a8b0bbdac88b937f30459281fc4f00d.zip gdb-45364c8a2a8b0bbdac88b937f30459281fc4f00d.tar.gz gdb-45364c8a2a8b0bbdac88b937f30459281fc4f00d.tar.bz2 |
* c-exp.y (parse_number): Change high_bit to unsigned.
* demangle.c: Change all references to cfront to ARM, since the
actual algorithm is the one specified in the Annotated Reference
Manual. This was confusing users into thinking that full cfront
support was implemented.
* dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
* eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
directly to lookup_struct_elt_type, which will do the
dereferencing itself.
* gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
NULL dereferencing bug for unnamed structs, comment out
questionable code.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 981634a..f8c87c4 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -962,7 +962,7 @@ parse_number (p, len, parsed_float, putithere) register int base = input_radix; int unsigned_p = 0; int long_p = 0; - LONGEST high_bit; + unsigned LONGEST high_bit; struct type *signed_type; struct type *unsigned_type; @@ -1047,13 +1047,13 @@ parse_number (p, len, parsed_float, putithere) if ((TARGET_INT_BIT != TARGET_LONG_BIT && (n >> TARGET_INT_BIT)) || long_p) { - high_bit = ((LONGEST)1) << (TARGET_LONG_BIT-1); + high_bit = ((unsigned LONGEST)1) << (TARGET_LONG_BIT-1); unsigned_type = builtin_type_unsigned_long; signed_type = builtin_type_long; } else { - high_bit = ((LONGEST)1) << (TARGET_INT_BIT-1); + high_bit = ((unsigned LONGEST)1) << (TARGET_INT_BIT-1); unsigned_type = builtin_type_unsigned_int; signed_type = builtin_type_int; } |