aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index de1161d..517e607 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -395,6 +395,7 @@ value_print (struct value *val, struct ui_file *stream,
value_address (val),
stream, 0, options,
current_language);
+
if (r)
return r;
}
@@ -1141,6 +1142,7 @@ val_print_array_elements (struct type *type, const gdb_byte *valaddr,
else
{
long low, hi;
+
if (get_array_bounds (type, &low, &hi))
len = hi - low + 1;
else