From 0d932b2f8eccc885b1bd4644c12c176b7c128046 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Fri, 26 Aug 2011 12:32:59 +0000 Subject: 2011-08-26 Marc Khouzam PR mi/11912 * varobj.c (cplus_describe_child): Add the keyword 'class' to the output of the method when dealing with a cast to a base class. 2011-08-26 Marc Khouzam PR mi/11912 * gdb.mi/mi-inheritance-syntax-error.cc: New file. * gdb.mi/mi-inheritance-syntax-error.exp: New file. * gdb.mi/mi-var-cp.cc: Updated for new 'class' keyword in output of -var-info-path-expression. --- gdb/testsuite/gdb.mi/mi-var-cp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/testsuite/gdb.mi/mi-var-cp.cc') diff --git a/gdb/testsuite/gdb.mi/mi-var-cp.cc b/gdb/testsuite/gdb.mi/mi-var-cp.cc index 0a552559544..54439e65be6 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cp.cc +++ b/gdb/testsuite/gdb.mi/mi-var-cp.cc @@ -157,7 +157,7 @@ int path_expression () {DP.Base2 Base2 1 Base2} \ {DP.public public 1}} "list children of DP" mi_gdb_test "-var-info-path-expression DP.Base1" \ - "\\^done,path_expr=\"\\(\\*\\(Base1\\*\\) dp\\)\"" \ + "\\^done,path_expr=\"\\(\\*\\(class Base1\\*\\) dp\\)\"" \ "-var-info-path-expression DP.Base1" mi_list_varobj_children DP.public { \ {DP.public.i i 0 int} \ @@ -172,7 +172,7 @@ int path_expression () {DP.Base1.public.i i 0 int} \ } "list children of DP.Base1.public" mi_gdb_test "-var-info-path-expression DP.Base1.public.i" \ - "\\^done,path_expr=\"\\(\\(\\(\\*\\(Base1\\*\\) dp\\)\\).i\\)\"" \ + "\\^done,path_expr=\"\\(\\(\\(\\*\\(class Base1\\*\\) dp\\)\\).i\\)\"" \ "-var-info-path-expression DP.Base1.public.i" mi_gdb_test "-var-info-path-expression DP.public" \ @@ -185,7 +185,7 @@ int path_expression () {D.Base2 Base2 1 Base2} \ {D.public public 1}} "list children of D" mi_gdb_test "-var-info-path-expression D.Base1" \ - "\\^done,path_expr=\"\\(\\(Base1\\) d\\)\"" \ + "\\^done,path_expr=\"\\(\\(class Base1\\) d\\)\"" \ "-var-info-path-expression D.Base1" :*/ int array[4] = {1,2,3}; -- cgit v1.2.1