diff options
author | Per Bothner <per@bothner.com> | 1995-01-23 21:20:58 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1995-01-23 21:20:58 +0000 |
commit | 6d34c23688b9d441b6daba6dff56d6a4389bc058 (patch) | |
tree | f2acf81c173f32cd8b679d92911f4298440f896d /gdb/gdbtypes.c | |
parent | ce51845b10a95dc54e30c5df90706a3902d6d1ed (diff) | |
download | gdb-6d34c23688b9d441b6daba6dff56d6a4389bc058.zip gdb-6d34c23688b9d441b6daba6dff56d6a4389bc058.tar.gz gdb-6d34c23688b9d441b6daba6dff56d6a4389bc058.tar.bz2 |
Add support for Chill bitstring literals (e.h. H'FF00').
* ch-exp.y (match_bitstring_literal): Fix for proper endianness.
* expprint.c (print_subexp): Don't call error on OP_BITSTRING,
just print B'<unimlemented>'.
* gdbtypes.c (create_set_type): Fix bug in length calculation.
* valops.c, value.h (value_bitstring): New function.
* eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
* ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
check that return type is non-void, and print in proper Chill syntax.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index c386a42..9ec6666 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -479,7 +479,7 @@ create_set_type (result_type, domain_type) high_bound = TYPE_HIGH_BOUND (domain_type); bit_length = high_bound - low_bound + 1; TYPE_LENGTH (result_type) - = ((bit_length + TARGET_INT_BIT - 1) / TARGET_INT_BIT) + = ((bit_length + TARGET_CHAR_BIT - 1) / TARGET_CHAR_BIT) * TARGET_CHAR_BIT; } TYPE_FIELD_TYPE (result_type, 0) = domain_type; |