diff options
author | Tom Tromey <tromey@adacore.com> | 2019-06-18 09:37:02 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-06-27 07:51:52 -0600 |
commit | 3d507ff23b724ecb2b9a5a61cebd0fba275cfbc3 (patch) | |
tree | bb0d15d697c09452f1b885b9ad2a07878f1f89b4 /gdb/testsuite/gdb.cp | |
parent | ba85f98c42877287f45644a6d75513239c9490a5 (diff) | |
download | gdb-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/testsuite/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/constexpr-field.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/constexpr-field.exp b/gdb/testsuite/gdb.cp/constexpr-field.exp index e4849ef..2f71cef 100644 --- a/gdb/testsuite/gdb.cp/constexpr-field.exp +++ b/gdb/testsuite/gdb.cp/constexpr-field.exp @@ -31,6 +31,7 @@ if {![runto_main]} { # "x" sometimes isn't available due to # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90526 -gdb_test "print x" " = {static f = .*}" +setup_xfail *-*-* gcc/90526 +gdb_test "print x" " = {static f = true}" gdb_test "print y" " = {static f = true}" |