From 5c07461a748143e1ad1931bd0f5054aabde9c306 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 26 Aug 2011 21:11:08 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.mi/mi-inheritance-syntax-error.cc (A): Make `a' public. (C): Initialize `a'. * gdb.mi/mi-inheritance-syntax-error.exp (-data-evaluate-expression $path): Expect `a' as 5. --- gdb/testsuite/ChangeLog | 7 +++++++ gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc | 4 +++- gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 82496a01df6..5dc374caa26 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-08-26 Jan Kratochvil + + * gdb.mi/mi-inheritance-syntax-error.cc (A): Make `a' public. + (C): Initialize `a'. + * gdb.mi/mi-inheritance-syntax-error.exp + (-data-evaluate-expression $path): Expect `a' as 5. + 2011-08-26 Marc Khouzam PR mi/11912 diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc index 9cc0518e5d3..9f0ab052829 100644 --- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc +++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc @@ -5,7 +5,8 @@ class A { - int a; + public: + int a; }; class C : public A @@ -13,6 +14,7 @@ class C : public A public: C() { + a = 5; }; void testLocation() { diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp index e24019b6018..cd3f1326fec 100644 --- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp +++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp @@ -66,7 +66,7 @@ verbose "Using $path for data-evaluate-expression" 2 mi_gdb_test "-data-evaluate-expression \"$path\"" \ - "\\^done,value=\"\{a = \[0-9\]*\}\"" \ + "\\^done,value=\"\{a = 5\}\"" \ "-data-evaluate-expression $path" mi_gdb_exit -- 2.30.2