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.
This commit is contained in:
parent
3ced3da4a5
commit
5c07461a74
@ -1,3 +1,10 @@
|
||||
2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* 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 <marc.khouzam@ericsson.com>
|
||||
|
||||
PR mi/11912
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user