aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-06-18 09:37:02 -0600
committerTom Tromey <tromey@adacore.com>2019-06-27 07:51:52 -0600
commit3d507ff23b724ecb2b9a5a61cebd0fba275cfbc3 (patch)
treebb0d15d697c09452f1b885b9ad2a07878f1f89b4 /gdb/cp-valprint.c
parentba85f98c42877287f45644a6d75513239c9490a5 (diff)
downloadgdb-3d507ff23b724ecb2b9a5a61cebd0fba275cfbc3.zip
gdb-3d507ff23b724ecb2b9a5a61cebd0fba275cfbc3.tar.gz
gdb-3d507ff23b724ecb2b9a5a61cebd0fba275cfbc3.tar.bz2
Fix two buglets in cp_print_value_fields patch
Pedro and Tom both pointed out issues in the cp_print_value_fields patch, aka the fix for PR c++/20020. This patch addresses both issues. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-06-27 Tom Tromey <tromey@adacore.com> * cp-valprint.c (cp_print_value_fields): Pass opts, not options, to cp_print_static_field. gdb/testsuite/ChangeLog 2019-06-27 Tom Tromey <tromey@adacore.com> * gdb.cp/constexpr-field.exp: Use setup_xfail.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 5781d7a..d3a38d8 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -302,7 +302,7 @@ cp_print_value_fields (struct type *type, struct type *real_type,
cp_print_static_field (TYPE_FIELD_TYPE (type, i),
v, stream, recurse + 1,
- options);
+ opts);
}
catch (const gdb_exception_error &ex)
{