projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb/testsuite/
[binutils-gdb.git]
/
gdb
/
valprint.c
diff --git
a/gdb/valprint.c
b/gdb/valprint.c
index de1161decaf87de901df6987d2ac700ff702986c..517e607a85d6af4f9e218786bc89356d32cf43e9 100644
(file)
--- 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