aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1996-10-20 11:41:30 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1996-10-20 11:41:30 +0000
commit972256e712d8fa041244f75ec25c4deba13df787 (patch)
tree3c2278ea7e755a9583181cd7479ad65b7666ee1d /gdb/cp-valprint.c
parente20f0dbd8d65d69f2a42b0fef4c082fe0c1c9995 (diff)
downloadgdb-972256e712d8fa041244f75ec25c4deba13df787.zip
gdb-972256e712d8fa041244f75ec25c4deba13df787.tar.gz
gdb-972256e712d8fa041244f75ec25c4deba13df787.tar.bz2
* corelow.c (core_close): Clear inferior_pid only if there is
an open core_bfd. * cp-valprint.c (cp_print_value_fields): Pass correct address to val_print, not 0. From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de): * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase typedefs before checking for integral type of right operand.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 48f4905..b2015c7 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -351,7 +351,8 @@ cp_print_value_fields (type, valaddr, address, stream, format, recurse, pretty,
{
val_print (TYPE_FIELD_TYPE (type, i),
valaddr + TYPE_FIELD_BITPOS (type, i) / 8,
- 0, stream, format, 0, recurse + 1, pretty);
+ address + TYPE_FIELD_BITPOS (type, i) / 8,
+ stream, format, 0, recurse + 1, pretty);
}
}
annotate_field_end ();