diff options
author | Pierre Muller <muller@sourceware.org> | 2010-06-03 06:50:49 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-06-03 06:50:49 +0000 |
commit | df1784511914208f03f111bc06e42ab3d75dcbd5 (patch) | |
tree | 1918a82ddd9b0bfd6a9b61c430f4f7e24a0060f2 /gdb/ada-valprint.c | |
parent | 416a7ddd02bd7e6e95c2275008d82a469ca0de1e (diff) | |
download | gdb-df1784511914208f03f111bc06e42ab3d75dcbd5.zip gdb-df1784511914208f03f111bc06e42ab3d75dcbd5.tar.gz gdb-df1784511914208f03f111bc06e42ab3d75dcbd5.tar.bz2 |
* valprint.h (get_array_bounds): Change low and high parameter types
to LONGEST *.
* valprint.c (get_array_bounds): Use get_discrete_bounds call to
compute bounds.
(val_print_array_elements): Adapt to change above.
* ada-valprint.c (print_optional_low_bound): Adapt to change above.
* p-valprint.c (pascal_val_print): Likewise.
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index c56d221..7e93e3a 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -85,8 +85,8 @@ print_optional_low_bound (struct ui_file *stream, struct type *type, const struct value_print_options *options) { struct type *index_type; - long low_bound; - long high_bound; + LONGEST low_bound; + LONGEST high_bound; if (options->print_array_indexes) return 0; @@ -131,7 +131,7 @@ print_optional_low_bound (struct ui_file *stream, struct type *type, break; } - ada_print_scalar (index_type, (LONGEST) low_bound, stream); + ada_print_scalar (index_type, low_bound, stream); fprintf_filtered (stream, " => "); return 1; } |