aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-06-03 06:50:49 +0000
committerPierre Muller <muller@sourceware.org>2010-06-03 06:50:49 +0000
commitdf1784511914208f03f111bc06e42ab3d75dcbd5 (patch)
tree1918a82ddd9b0bfd6a9b61c430f4f7e24a0060f2 /gdb/p-valprint.c
parent416a7ddd02bd7e6e95c2275008d82a469ca0de1e (diff)
downloadgdb-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/p-valprint.c')
-rw-r--r--gdb/p-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 1c2f36d..e58f9d2 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -60,7 +60,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr,
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
unsigned int i = 0; /* Number of characters printed */
unsigned len;
- long low_bound, high_bound;
+ LONGEST low_bound, high_bound;
struct type *elttype;
unsigned eltlen;
int length_pos, length_size, string_pos;