From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31344 invoked by alias); 10 Nov 2002 08:39:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31327 invoked from network); 10 Nov 2002 08:39:21 -0000 Received: from unknown (HELO molenda.com) (192.220.74.81) by sources.redhat.com with SMTP; 10 Nov 2002 08:39:21 -0000 Received: (qmail 9886 invoked by uid 19025); 10 Nov 2002 08:39:21 -0000 Date: Sun, 10 Nov 2002 00:39:00 -0000 From: Jason Molenda To: gdb-patches@sources.redhat.com Subject: [MI PATCH RFA]: make -var-list-children's CHILDREN result field a list Message-ID: <20021110003921.A6628@molenda.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-11/txt/msg00287.txt.bz2 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 2087 -var-list-children's return is CHILDREN, which is a list of CHILD tuples. Currently CHILDREN is a tuple, which is incorrect -- this patch changes it to a list, when not in mi1 mode. (in mi0, lists and tuples are identical so I only check for mi1) [gdb/mi/ChangeLog] 2002-11-10 Jason Molenda (jason-cl@molenda.com) * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is now a list; still a tuple when in mi1. * gdbmi.texinfo: Update var-list-children example. [gdb/testsuite/ChangeLog] 2002-11-10 Jason Molenda (jason-cl@molenda.com) * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is now a list, not a tuple. * gdb.mi/mi-var-display.exp: Ditto. * gdb.mi/gdb792.exp: Ditto. As an aside, error messages are output twice in MI. For instance, if you hit a breakpoint during an inferior function call, you get a result like this: &"The program being debugged stopped while in a function called from GDB.\n" &"When the function (foo) is done executing, GDB will silently\n" &"stop (instead of continuing to evaluate the expression containing\n" &"the function call).\n" 401^error,msg="The program being debugged stopped while in a function called from GDB.\nWhen the function (foo) is done executing, GDB will silently\nstop (instead of continuing to evaluate the expression containing\nthe function call)." At Apple, we've done away with the stderr console output, and just send the error message through the normal MI mechanism. The GUI can display the error message to the user in a reasonable way. You could argue that the UI could try to do the same thing with the &"" messages, but those aren't as clearly tied to specific MI commands. As an added benefit, MI test cases that involve errors get a lot shorter. :-) Seriously though, I'd be surprised if the double sending of error output is used by shipping front ends. I'd be happy to submit a patch to change the FSF gdb behavior for mi_version > 1 -- it's the addition of one conditional in utils.c:error_stream(). Jason --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pa.txt" Content-Transfer-Encoding: quoted-printable Content-length: 58708 [gdb/mi/ChangeLog] 2002-11-10 Jason Molenda (jason-cl@molenda.com) * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is now a list; still a tuple when in mi1. * gdbmi.texinfo: Update var-list-children example. [gdb/testsuite/ChangeLog] 2002-11-10 Jason Molenda (jason-cl@molenda.com) * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is now a list, not a tuple. * gdb.mi/mi-var-display.exp: Ditto. * gdb.mi/gdb792.exp: Ditto. Index: mi/mi-cmd-var.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/mi/mi-cmd-var.c,v retrieving revision 1.15 diff -u -p -r1.15 mi-cmd-var.c --- mi/mi-cmd-var.c 7 Nov 2002 01:43:59 -0000 1.15 +++ mi/mi-cmd-var.c 10 Nov 2002 08:05:36 -0000 @@ -272,7 +272,10 @@ mi_cmd_var_list_children (char *command, if (numchild <=3D 0) return MI_CMD_DONE; =20 - cleanup_children =3D make_cleanup_ui_out_tuple_begin_end (uiout, "childr= en"); + if (mi_version (uiout) =3D=3D 1) + cleanup_children =3D make_cleanup_ui_out_tuple_begin_end (uiout, "chil= dren"); + else + cleanup_children =3D make_cleanup_ui_out_list_begin_end (uiout, "child= ren"); cc =3D childlist; while (*cc !=3D NULL) { Index: mi/gdbmi.texinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/mi/gdbmi.texinfo,v retrieving revision 1.29 diff -u -p -r1.29 gdbmi.texinfo --- mi/gdbmi.texinfo 3 Oct 2002 22:31:31 -0000 1.29 +++ mi/gdbmi.texinfo 10 Nov 2002 08:27:19 -0000 @@ -3710,8 +3710,8 @@ Returns the number of children of a vari Returns a list of the children of the specified variable object: =20 @example - numchild=3D@var{n},children=3D@{@{name=3D@var{name}, - numchild=3D@var{n},type=3D@var{type}@},@r{(repeats N times)}@} + numchild=3D@var{n},children=3D[@{name=3D@var{name}, + numchild=3D@var{n},type=3D@var{type}@},@r{(repeats N times)}] @end example =20 =20 Index: testsuite/gdb.mi/mi-var-child.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-child.exp,v retrieving revision 1.12 diff -u -p -r1.12 mi-var-child.exp --- testsuite/gdb.mi/mi-var-child.exp 3 Oct 2002 20:03:55 -0000 1.12 +++ testsuite/gdb.mi/mi-var-child.exp 10 Nov 2002 08:06:10 -0000 @@ -62,7 +62,7 @@ mi_gdb_test "-var-create struct_declarat # STABS doesn't give us argument types for the func ptr structs, but # Dwarf 2 does. mi_gdb_test "-var-list-children struct_declarations" \ - "\\^done,numchild=3D\"11\",children=3D\{child=3D\{name=3D\"struct_declara= tions.integer\",exp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child= =3D\{name=3D\"struct_declarations.character\",exp=3D\"character\",numchild= =3D\"0\",type=3D\"char\"\},child=3D{name=3D\"struct_declarations.char_ptr\"= ,exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\},child=3D\{name= =3D\"struct_declarations.long_int\",exp=3D\"long_int\",numchild=3D\"0\",typ= e=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.int_ptr_ptr\",exp= =3D\"int_ptr_ptr\",numchild=3D\"1\",type=3D\"int \\*\\*\"\},child=3D\{name= =3D\"struct_declarations.long_array\",exp=3D\"long_array\",numchild=3D\"10\= ",type=3D\"long int \\\[10\\\]\"\},child=3D\{name=3D\"struct_declarations.f= unc_ptr\",exp=3D\"func_ptr\",numchild=3D\"0\",type=3D\"void \\(\\*\\)\\((vo= id)?\\)\"\},child=3D\{name=3D\"struct_declarations.func_ptr_struct\",exp=3D= \"func_ptr_struct\",numchild=3D\"0\",type=3D\"struct _struct_decl \\(\\*\\)= \\((int, char \\*, long int)?\\)\"\},child=3D\{name=3D\"struct_declarations= .func_ptr_ptr\",exp=3D\"func_ptr_ptr\",numchild=3D\"0\",type=3D\"struct _st= ruct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\)\"\},child=3D\{name= =3D\"struct_declarations.u1\",exp=3D\"u1\",numchild=3D\"4\",type=3D\"union = \{\\.\\.\\.\}\"\},child=3D\{name=3D\"struct_declarations.s2\",exp=3D\"s2\",= numchild=3D\"4\",type=3D\"struct \{\\.\\.\\.\}\"\}\}" \ + "\\^done,numchild=3D\"11\",children=3D\\\[child=3D\{name=3D\"struct_decla= rations.integer\",exp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child= =3D\{name=3D\"struct_declarations.character\",exp=3D\"character\",numchild= =3D\"0\",type=3D\"char\"\},child=3D{name=3D\"struct_declarations.char_ptr\"= ,exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\},child=3D\{name= =3D\"struct_declarations.long_int\",exp=3D\"long_int\",numchild=3D\"0\",typ= e=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.int_ptr_ptr\",exp= =3D\"int_ptr_ptr\",numchild=3D\"1\",type=3D\"int \\*\\*\"\},child=3D\{name= =3D\"struct_declarations.long_array\",exp=3D\"long_array\",numchild=3D\"10\= ",type=3D\"long int \\\[10\\\]\"\},child=3D\{name=3D\"struct_declarations.f= unc_ptr\",exp=3D\"func_ptr\",numchild=3D\"0\",type=3D\"void \\(\\*\\)\\((vo= id)?\\)\"\},child=3D\{name=3D\"struct_declarations.func_ptr_struct\",exp=3D= \"func_ptr_struct\",numchild=3D\"0\",type=3D\"struct _struct_decl \\(\\*\\)= \\((int, char \\*, long int)?\\)\"\},child=3D\{name=3D\"struct_declarations= .func_ptr_ptr\",exp=3D\"func_ptr_ptr\",numchild=3D\"0\",type=3D\"struct _st= ruct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\)\"\},child=3D\{name= =3D\"struct_declarations.u1\",exp=3D\"u1\",numchild=3D\"4\",type=3D\"union = \{\\.\\.\\.\}\"\},child=3D\{name=3D\"struct_declarations.s2\",exp=3D\"s2\",= numchild=3D\"4\",type=3D\"struct \{\\.\\.\\.\}\"\}\\\]" \ "get children of struct_declarations" =20 #gdbtk_test c_variable-4.3 {children of struct_declarations} { @@ -102,7 +102,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.9 # Desc: children of struct_declarations.char_ptr mi_gdb_test "-var-list-children struct_declarations.char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.char_ptr.\\*char_ptr\",exp=3D\"\\*char_ptr\",numchild=3D\"0\",type=3D\= "char\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.char_ptr.\\*char_ptr\",exp=3D\"\\*char_ptr\",numchild=3D\"0\",type= =3D\"char\"\}\\\]" \ "get children of struct_declarations.char_ptr" =20 # Test: c_variable-4.10 @@ -126,7 +126,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.13 # Desc: children of int_ptr_ptr mi_gdb_test "-var-list-children struct_declarations.int_ptr_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.int_ptr_ptr.\\*int_ptr_ptr\",exp=3D\"\\*int_ptr_ptr\",numchild=3D\"1\"= ,type=3D\"int \\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.int_ptr_ptr.\\*int_ptr_ptr\",exp=3D\"\\*int_ptr_ptr\",numchild=3D\"1= \",type=3D\"int \\*\"\}\\\]" \ "get children of struct_declarations.int_ptr_ptr" =20 #gdbtk_test c_variable-4.13 {children of int_ptr_ptr} { @@ -143,7 +143,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.15 # Desc: children of struct_declarations.long_array mi_gdb_test "-var-list-children struct_declarations.long_array" \ - "\\^done,numchild=3D\"10\",children=3D\{child=3D\{name=3D\"struct_declara= tions.long_array.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"long int\"\},chi= ld=3D\{name=3D\"struct_declarations.long_array.1\",exp=3D\"1\",numchild=3D\= "0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.long_arra= y.2\",exp=3D\"2\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\= "struct_declarations.long_array.3\",exp=3D\"3\",numchild=3D\"0\",type=3D\"l= ong int\"\},child=3D\{name=3D\"struct_declarations.long_array.4\",exp=3D\"4= \",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declara= tions.long_array.5\",exp=3D\"5\",numchild=3D\"0\",type=3D\"long int\"\},chi= ld=3D\{name=3D\"struct_declarations.long_array.6\",exp=3D\"6\",numchild=3D\= "0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.long_arra= y.7\",exp=3D\"7\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\= "struct_declarations.long_array.8\",exp=3D\"8\",numchild=3D\"0\",type=3D\"l= ong int\"\},child=3D\{name=3D\"struct_declarations.long_array.9\",exp=3D\"9= \",numchild=3D\"0\",type=3D\"long int\"\}\}" \ + "\\^done,numchild=3D\"10\",children=3D\\\[child=3D\{name=3D\"struct_decla= rations.long_array.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"long int\"\},c= hild=3D\{name=3D\"struct_declarations.long_array.1\",exp=3D\"1\",numchild= =3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.long_= array.2\",exp=3D\"2\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name= =3D\"struct_declarations.long_array.3\",exp=3D\"3\",numchild=3D\"0\",type= =3D\"long int\"\},child=3D\{name=3D\"struct_declarations.long_array.4\",exp= =3D\"4\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_d= eclarations.long_array.5\",exp=3D\"5\",numchild=3D\"0\",type=3D\"long int\"= \},child=3D\{name=3D\"struct_declarations.long_array.6\",exp=3D\"6\",numchi= ld=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.lon= g_array.7\",exp=3D\"7\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{na= me=3D\"struct_declarations.long_array.8\",exp=3D\"8\",numchild=3D\"0\",type= =3D\"long int\"\},child=3D\{name=3D\"struct_declarations.long_array.9\",exp= =3D\"9\",numchild=3D\"0\",type=3D\"long int\"\}\\\]" \ "get children of struct_declarations.long_array" =20 # Test: c_variable-4.16 @@ -195,7 +195,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.23 # Desc: children of struct_declarations.u1 mi_gdb_test "-var-list-children struct_declarations.u1" \ - "\\^done,numchild=3D\"4\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.u1.a\",exp=3D\"a\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D= \"struct_declarations.u1.b\",exp=3D\"b\",numchild=3D\"1\",type=3D\"char \\*= \"\},child=3D\{name=3D\"struct_declarations.u1.c\",exp=3D\"c\",numchild=3D\= "0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.u1.d\",ex= p=3D\"d\",numchild=3D\"0\",type=3D\"enum foo\"\}\}" \ + "\\^done,numchild=3D\"4\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.u1.a\",exp=3D\"a\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name= =3D\"struct_declarations.u1.b\",exp=3D\"b\",numchild=3D\"1\",type=3D\"char = \\*\"\},child=3D\{name=3D\"struct_declarations.u1.c\",exp=3D\"c\",numchild= =3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.u1.d\= ",exp=3D\"d\",numchild=3D\"0\",type=3D\"enum foo\"\}\\\]" \ "get children of struct_declarations.u1" =20 # Test: c_variable-4.24 @@ -207,7 +207,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.25 # Desc: children of struct_declarations.s2 mi_gdb_test "-var-list-children struct_declarations.s2" \ - "\\^done,numchild=3D\"4\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.s2.u2\",exp=3D\"u2\",numchild=3D\"3\",type=3D\"union \{\\.\\.\\.\}\"\}= ,child=3D\{name=3D\"struct_declarations.s2.g\",exp=3D\"g\",numchild=3D\"0\"= ,type=3D\"int\"\},child=3D\{name=3D\"struct_declarations.s2.h\",exp=3D\"h\"= ,numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_declarations.= s2.i\",exp=3D\"i\",numchild=3D\"10\",type=3D\"long int \\\[10\\\]\"\}\}" \ + "\\^done,numchild=3D\"4\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.s2.u2\",exp=3D\"u2\",numchild=3D\"3\",type=3D\"union \{\\.\\.\\.\}\"= \},child=3D\{name=3D\"struct_declarations.s2.g\",exp=3D\"g\",numchild=3D\"0= \",type=3D\"int\"\},child=3D\{name=3D\"struct_declarations.s2.h\",exp=3D\"h= \",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_declaration= s.s2.i\",exp=3D\"i\",numchild=3D\"10\",type=3D\"long int \\\[10\\\]\"\}\\\]= " \ "get children of struct_declarations.s2" #gdbtk_test c_variable-4.25 {children of struct_declarations.s2} { # get_children struct_declarations.s2 @@ -344,7 +344,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.47 # Desc: children of struct_declarations.u1.b mi_gdb_test "-var-list-children struct_declarations.u1.b" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.u1.b.\\*b\",exp=3D\"\\*b\",numchild=3D\"0\",type=3D\"char\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.u1.b.\\*b\",exp=3D\"\\*b\",numchild=3D\"0\",type=3D\"char\"\}\\\]" \ "get children of struct_declarations.u1.b" =20 # Test: c_variable-4.48 @@ -382,7 +382,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.53 # Desc: children of struct_declarations.s2.u2 mi_gdb_test "-var-list-children struct_declarations.s2.u2" \ - "\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.s2.u2.u1s1\",exp=3D\"u1s1\",numchild=3D\"4\",type=3D\"struct \{\\.\\.\= \.\}\"\},child=3D\{name=3D\"struct_declarations.s2.u2.f\",exp=3D\"f\",numch= ild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.s2= .u2.u1s2\",exp=3D\"u1s2\",numchild=3D\"2\",type=3D\"struct \{\\.\\.\\.\}\"\= }\}" \ + "\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.s2.u2.u1s1\",exp=3D\"u1s1\",numchild=3D\"4\",type=3D\"struct \{\\.\\= .\\.\}\"\},child=3D\{name=3D\"struct_declarations.s2.u2.f\",exp=3D\"f\",num= child=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.= s2.u2.u1s2\",exp=3D\"u1s2\",numchild=3D\"2\",type=3D\"struct \{\\.\\.\\.\}\= "\}\\\]" \ "get children of struct_declarations.s2.u2" =20 # Test: c_variable-4.54 @@ -420,7 +420,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.59 # Desc: children of struct_declarations.s2.i mi_gdb_test "-var-list-children struct_declarations.s2.i" \ - "\\^done,numchild=3D\"10\",children=3D\{child=3D\{name=3D\"struct_declara= tions.s2.i.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\= {name=3D\"struct_declarations.s2.i.1\",exp=3D\"1\",numchild=3D\"0\",type=3D= \"long int\"\},child=3D\{name=3D\"struct_declarations.s2.i.2\",exp=3D\"2\",= numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declaratio= ns.s2.i.3\",exp=3D\"3\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{na= me=3D\"struct_declarations.s2.i.4\",exp=3D\"4\",numchild=3D\"0\",type=3D\"l= ong int\"\},child=3D\{name=3D\"struct_declarations.s2.i.5\",exp=3D\"5\",num= child=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.= s2.i.6\",exp=3D\"6\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name= =3D\"struct_declarations.s2.i.7\",exp=3D\"7\",numchild=3D\"0\",type=3D\"lon= g int\"\},child=3D\{name=3D\"struct_declarations.s2.i.8\",exp=3D\"8\",numch= ild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.s2= .i.9\",exp=3D\"9\",numchild=3D\"0\",type=3D\"long int\"\}\}" \ + "\\^done,numchild=3D\"10\",children=3D\\\[child=3D\{name=3D\"struct_decla= rations.s2.i.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"long int\"\},child= =3D\{name=3D\"struct_declarations.s2.i.1\",exp=3D\"1\",numchild=3D\"0\",typ= e=3D\"long int\"\},child=3D\{name=3D\"struct_declarations.s2.i.2\",exp=3D\"= 2\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declar= ations.s2.i.3\",exp=3D\"3\",numchild=3D\"0\",type=3D\"long int\"\},child=3D= \{name=3D\"struct_declarations.s2.i.4\",exp=3D\"4\",numchild=3D\"0\",type= =3D\"long int\"\},child=3D\{name=3D\"struct_declarations.s2.i.5\",exp=3D\"5= \",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declara= tions.s2.i.6\",exp=3D\"6\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\= {name=3D\"struct_declarations.s2.i.7\",exp=3D\"7\",numchild=3D\"0\",type=3D= \"long int\"\},child=3D\{name=3D\"struct_declarations.s2.i.8\",exp=3D\"8\",= numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"struct_declaratio= ns.s2.i.9\",exp=3D\"9\",numchild=3D\"0\",type=3D\"long int\"\}\\\]" \ "get children of struct_declarations.s2.i" =20 # Test: c_variable-4.60 @@ -432,7 +432,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.61 # Desc: children of struct_declarations.s2.u2.u1s1 mi_gdb_test "-var-list-children struct_declarations.s2.u2.u1s1" \ - "\\^done,numchild=3D\"4\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.s2.u2.u1s1.d\",exp=3D\"d\",numchild=3D\"0\",type=3D\"int\"\},child=3D\= {name=3D\"struct_declarations.s2.u2.u1s1.e\",exp=3D\"e\",numchild=3D\"10\",= type=3D\"char \\\[10\\\]\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u= 1s1.func\",exp=3D\"func\",numchild=3D\"0\",type=3D\"int \\*\\(\\*\\)\\((voi= d)?\\)\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.foo\",exp=3D\"= foo\",numchild=3D\"0\",type=3D\"efoo\"\}\}" \ + "\\^done,numchild=3D\"4\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.s2.u2.u1s1.d\",exp=3D\"d\",numchild=3D\"0\",type=3D\"int\"\},child= =3D\{name=3D\"struct_declarations.s2.u2.u1s1.e\",exp=3D\"e\",numchild=3D\"1= 0\",type=3D\"char \\\[10\\\]\"\},child=3D\{name=3D\"struct_declarations.s2.= u2.u1s1.func\",exp=3D\"func\",numchild=3D\"0\",type=3D\"int \\*\\(\\*\\)\\(= (void)?\\)\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.foo\",exp= =3D\"foo\",numchild=3D\"0\",type=3D\"efoo\"\}\\\]" \ "get children of struct_declarations.s2.u2.u1s1" =20 # Test: c_variable-4.62 @@ -456,7 +456,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.65 # Desc: children of struct_declarations.s2.u2.u1s2 mi_gdb_test "-var-list-children struct_declarations.s2.u2.u1s2" \ - "\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.s2.u2.u1s2.array_ptr\",exp=3D\"array_ptr\",numchild=3D\"2\",type=3D\"c= har \\\[2\\\]\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s2.func\",= exp=3D\"func\",numchild=3D\"0\",type=3D\"int \\(\\*\\)\\((int, char \\*)?\\= )\"\}\}" \ + "\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.s2.u2.u1s2.array_ptr\",exp=3D\"array_ptr\",numchild=3D\"2\",type=3D\= "char \\\[2\\\]\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s2.func\= ",exp=3D\"func\",numchild=3D\"0\",type=3D\"int \\(\\*\\)\\((int, char \\*)?= \\)\"\}\\\]" \ "get children of struct_declarations.s2.u2.u1s2" =20 # Test: c_variable-4.66 @@ -480,7 +480,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.69 # Desc: children of struct_declarations.s2.u2.u1s1.e mi_gdb_test "-var-list-children struct_declarations.s2.u2.u1s1.e" \ - "\\^done,numchild=3D\"10\",children=3D\{child=3D\{name=3D\"struct_declara= tions.s2.u2.u1s1.e.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"char\"\},child= =3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.1\",exp=3D\"1\",numchild=3D\= "0\",type=3D\"char\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.= 2\",exp=3D\"2\",numchild=3D\"0\",type=3D\"char\"\},child=3D{name=3D\"struct= _declarations.s2.u2.u1s1.e.3\",exp=3D\"3\",numchild=3D\"0\",type=3D\"char\"= \},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.4\",exp=3D\"4\",numc= hild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_declarations.s2.u2= .u1s1.e.5\",exp=3D\"5\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name= =3D\"struct_declarations.s2.u2.u1s1.e.6\",exp=3D\"6\",numchild=3D\"0\",type= =3D\"char\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.7\",exp= =3D\"7\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_decla= rations.s2.u2.u1s1.e.8\",exp=3D\"8\",numchild=3D\"0\",type=3D\"char\"\},chi= ld=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.9\",exp=3D\"9\",numchild= =3D\"0\",type=3D\"char\"\}\}" \ + "\\^done,numchild=3D\"10\",children=3D\\\[child=3D\{name=3D\"struct_decla= rations.s2.u2.u1s1.e.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"char\"\},chi= ld=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.1\",exp=3D\"1\",numchild= =3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s= 1.e.2\",exp=3D\"2\",numchild=3D\"0\",type=3D\"char\"\},child=3D{name=3D\"st= ruct_declarations.s2.u2.u1s1.e.3\",exp=3D\"3\",numchild=3D\"0\",type=3D\"ch= ar\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.4\",exp=3D\"4\",= numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_declarations.s= 2.u2.u1s1.e.5\",exp=3D\"5\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{na= me=3D\"struct_declarations.s2.u2.u1s1.e.6\",exp=3D\"6\",numchild=3D\"0\",ty= pe=3D\"char\"\},child=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.7\",exp= =3D\"7\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"struct_decla= rations.s2.u2.u1s1.e.8\",exp=3D\"8\",numchild=3D\"0\",type=3D\"char\"\},chi= ld=3D\{name=3D\"struct_declarations.s2.u2.u1s1.e.9\",exp=3D\"9\",numchild= =3D\"0\",type=3D\"char\"\}\\\]" \ "get children of struct_declarations.s2.u2.u1s1.e" =20 # Test: c_variable-4.70 @@ -519,7 +519,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.75 # Desc: children of struct_declarations.s2.u2.u1s2.array_ptr mi_gdb_test "-var-list-children struct_declarations.s2.u2.u1s2.array_ptr" \ - "\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.s2.u2.u1s2.array_ptr.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"char\"\= },child=3D{name=3D\"struct_declarations.s2.u2.u1s2.array_ptr.1\",exp=3D\"1\= ",numchild=3D\"0\",type=3D\"char\"\}\}" \ + "\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.s2.u2.u1s2.array_ptr.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"char\= "\},child=3D{name=3D\"struct_declarations.s2.u2.u1s2.array_ptr.1\",exp=3D\"= 1\",numchild=3D\"0\",type=3D\"char\"\}\\\]" \ "get children of struct_declarations.s2.u2.u1s2.array_ptr" =20 # Test: c_variable-4.76 @@ -543,7 +543,7 @@ mi_gdb_test "-var-info-num-children stru # Test: c_variable-4.79 # Desc: children of struct_declarations.int_ptr_ptr.*int_ptr_ptr mi_gdb_test "-var-list-children struct_declarations.int_ptr_ptr.*int_ptr_p= tr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"struct_declarat= ions.int_ptr_ptr.\\*int_ptr_ptr.\\*\\*int_ptr_ptr\",exp=3D\"\\*\\*int_ptr_p= tr\",numchild=3D\"0\",type=3D\"int\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"struct_declar= ations.int_ptr_ptr.\\*int_ptr_ptr.\\*\\*int_ptr_ptr\",exp=3D\"\\*\\*int_ptr= _ptr\",numchild=3D\"0\",type=3D\"int\"\}\\\]" \ "get children of struct_declarations.int_ptr_ptr.*int_ptr_ptr" #} {**int_ptr_ptr} =20 @@ -567,7 +567,7 @@ mi_gdb_test "-var-create weird * weird"=20 # Test: c_variable-4.82 # Desc: children of weird mi_gdb_test "-var-list-children weird" \ - "\\^done,numchild=3D\"11\",children=3D\{child=3D\{name=3D\"weird.integer\= ",exp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"we= ird.character\",exp=3D\"character\",numchild=3D\"0\",type=3D\"char\"\},chil= d=3D\{name=3D\"weird.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D= \"char \\*\"\},child=3D\{name=3D\"weird.long_int\",exp=3D\"long_int\",numch= ild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.int_ptr_ptr\",ex= p=3D\"int_ptr_ptr\",numchild=3D\"1\",type=3D\"int \\*\\*\"\},child=3D\{name= =3D\"weird.long_array\",exp=3D\"long_array\",numchild=3D\"10\",type=3D\"lon= g int \\\[10\\\]\"\},child=3D\{name=3D\"weird.func_ptr\",exp=3D\"func_ptr\"= ,numchild=3D\"0\",type=3D\"void \\(\\*\\)\\((void)?\\)\"\},child=3D\{name= =3D\"weird.func_ptr_struct\",exp=3D\"func_ptr_struct\",numchild=3D\"0\",typ= e=3D\"struct _struct_decl \\(\\*\\)\\((int, char \\*, long int)?\\)\"\},chi= ld=3D\{name=3D\"weird.func_ptr_ptr\",exp=3D\"func_ptr_ptr\",numchild=3D\"0\= ",type=3D\"struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\)= \"\},child=3D\{name=3D\"weird.u1\",exp=3D\"u1\",numchild=3D\"4\",type=3D\"u= nion \{\\.\\.\\.\}\"\},child=3D\{name=3D\"weird.s2\",exp=3D\"s2\",numchild= =3D\"4\",type=3D\"struct \{\\.\\.\\.\}\"\}\}" \ + "\\^done,numchild=3D\"11\",children=3D\\\[child=3D\{name=3D\"weird.intege= r\",exp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"= weird.character\",exp=3D\"character\",numchild=3D\"0\",type=3D\"char\"\},ch= ild=3D\{name=3D\"weird.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type= =3D\"char \\*\"\},child=3D\{name=3D\"weird.long_int\",exp=3D\"long_int\",nu= mchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.int_ptr_ptr\"= ,exp=3D\"int_ptr_ptr\",numchild=3D\"1\",type=3D\"int \\*\\*\"\},child=3D\{n= ame=3D\"weird.long_array\",exp=3D\"long_array\",numchild=3D\"10\",type=3D\"= long int \\\[10\\\]\"\},child=3D\{name=3D\"weird.func_ptr\",exp=3D\"func_pt= r\",numchild=3D\"0\",type=3D\"void \\(\\*\\)\\((void)?\\)\"\},child=3D\{nam= e=3D\"weird.func_ptr_struct\",exp=3D\"func_ptr_struct\",numchild=3D\"0\",ty= pe=3D\"struct _struct_decl \\(\\*\\)\\((int, char \\*, long int)?\\)\"\},ch= ild=3D\{name=3D\"weird.func_ptr_ptr\",exp=3D\"func_ptr_ptr\",numchild=3D\"0= \",type=3D\"struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\= )\"\},child=3D\{name=3D\"weird.u1\",exp=3D\"u1\",numchild=3D\"4\",type=3D\"= union \{\\.\\.\\.\}\"\},child=3D\{name=3D\"weird.s2\",exp=3D\"s2\",numchild= =3D\"4\",type=3D\"struct \{\\.\\.\\.\}\"\}\\\]" \ "get children of weird" =20 # Test: c_variable-4.83 @@ -580,7 +580,7 @@ mi_gdb_test "-var-info-num-children weir # Test: c_variable-4.84 # Desc: children of weird->long_array mi_gdb_test "-var-list-children weird.long_array" \ - "\\^done,numchild=3D\"10\",children=3D\{child=3D\{name=3D\"weird.long_arr= ay.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D= \"weird.long_array.1\",exp=3D\"1\",numchild=3D\"0\",type=3D\"long int\"\},c= hild=3D\{name=3D\"weird.long_array.2\",exp=3D\"2\",numchild=3D\"0\",type=3D= \"long int\"\},child=3D\{name=3D\"weird.long_array.3\",exp=3D\"3\",numchild= =3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.long_array.4\",exp= =3D\"4\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.lo= ng_array.5\",exp=3D\"5\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{n= ame=3D\"weird.long_array.6\",exp=3D\"6\",numchild=3D\"0\",type=3D\"long int= \"\},child=3D\{name=3D\"weird.long_array.7\",exp=3D\"7\",numchild=3D\"0\",t= ype=3D\"long int\"\},child=3D\{name=3D\"weird.long_array.8\",exp=3D\"8\",nu= mchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.long_array.9\= ",exp=3D\"9\",numchild=3D\"0\",type=3D\"long int\"\}\}" \ + "\\^done,numchild=3D\"10\",children=3D\\\[child=3D\{name=3D\"weird.long_a= rray.0\",exp=3D\"0\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name= =3D\"weird.long_array.1\",exp=3D\"1\",numchild=3D\"0\",type=3D\"long int\"\= },child=3D\{name=3D\"weird.long_array.2\",exp=3D\"2\",numchild=3D\"0\",type= =3D\"long int\"\},child=3D\{name=3D\"weird.long_array.3\",exp=3D\"3\",numch= ild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.long_array.4\",e= xp=3D\"4\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.= long_array.5\",exp=3D\"5\",numchild=3D\"0\",type=3D\"long int\"\},child=3D\= {name=3D\"weird.long_array.6\",exp=3D\"6\",numchild=3D\"0\",type=3D\"long i= nt\"\},child=3D\{name=3D\"weird.long_array.7\",exp=3D\"7\",numchild=3D\"0\"= ,type=3D\"long int\"\},child=3D\{name=3D\"weird.long_array.8\",exp=3D\"8\",= numchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.long_array.= 9\",exp=3D\"9\",numchild=3D\"0\",type=3D\"long int\"\}\\\]" \ "get children of weird.long_array" #gdbtk_test c_variable-4.84 {children of weird->long_array} { # get_children weird.long_array @@ -595,7 +595,7 @@ mi_gdb_test "-var-info-num-children weir # Test: c_variable-4.86 # Desc: children of weird.int_ptr_ptr mi_gdb_test "-var-list-children weird.int_ptr_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"weird.int_ptr_p= tr.\\*int_ptr_ptr\",exp=3D\"\\*int_ptr_ptr\",numchild=3D\"1\",type=3D\"int = \\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"weird.int_ptr= _ptr.\\*int_ptr_ptr\",exp=3D\"\\*int_ptr_ptr\",numchild=3D\"1\",type=3D\"in= t \\*\"\}\\\]" \ "get children of weird.int_ptr_ptr" #gdbtk_test c_variable-4.86 {children of weird->int_ptr_ptr} { # get_children weird.int_ptr_ptr @@ -610,7 +610,7 @@ mi_gdb_test "-var-info-num-children weir # Test: c_variable-4.88 # Desc: children of *weird->int_ptr_ptr mi_gdb_test "-var-list-children weird.int_ptr_ptr.*int_ptr_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"weird.int_ptr_p= tr.\\*int_ptr_ptr.\\*\\*int_ptr_ptr\",exp=3D\"\\*\\*int_ptr_ptr\",numchild= =3D\"0\",type=3D\"int\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"weird.int_ptr= _ptr.\\*int_ptr_ptr.\\*\\*int_ptr_ptr\",exp=3D\"\\*\\*int_ptr_ptr\",numchil= d=3D\"0\",type=3D\"int\"\}\\\]" \ "get children of weird.int_ptr_ptr.*int_ptr_ptr" #gdbtk_test c_variable-4.88 {children of *weird->int_ptr_ptr} { # get_children weird.int_ptr_ptr.*int_ptr_ptr @@ -631,7 +631,7 @@ mi_gdb_test "-var-create weird->int_ptr_ # Test: c_variable-4.91 # Desc: children of weird->int_ptr_ptr mi_gdb_test "-var-list-children weird->int_ptr_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"weird->int_ptr_= ptr.\\*weird->int_ptr_ptr\",exp=3D\"\\*weird->int_ptr_ptr\",numchild=3D\"1\= ",type=3D\"int \\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"weird->int_pt= r_ptr.\\*weird->int_ptr_ptr\",exp=3D\"\\*weird->int_ptr_ptr\",numchild=3D\"= 1\",type=3D\"int \\*\"\}\\\]" \ "get children of weird->int_ptr_ptr" =20 =20 @@ -644,7 +644,7 @@ mi_gdb_test "-var-info-num-children weir # Test: c_variable-4.93 # Desc: children of *(weird->int_ptr_ptr) mi_gdb_test "-var-list-children weird->int_ptr_ptr.*weird->int_ptr_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"weird->int_ptr_= ptr.\\*weird->int_ptr_ptr.\\*\\*weird->int_ptr_ptr\",exp=3D\"\\*\\*weird->i= nt_ptr_ptr\",numchild=3D\"0\",type=3D\"int\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"weird->int_pt= r_ptr.\\*weird->int_ptr_ptr.\\*\\*weird->int_ptr_ptr\",exp=3D\"\\*\\*weird-= >int_ptr_ptr\",numchild=3D\"0\",type=3D\"int\"\}\\\]" \ "get children of weird->int_ptr_ptr.*weird->int_ptr_ptr" =20 # Test: c_variable-4.94 @@ -868,7 +868,7 @@ mi_gdb_test "-var-create psnp->char_ptr # Test: c_variable-5.11 # Desc: children of psnp->char_ptr mi_gdb_test "-var-list-children psnp->char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->char_ptr.= \\*psnp->char_ptr\",exp=3D\"\\*psnp->char_ptr\",numchild=3D\"1\",type=3D\"c= har \\*\\*\\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->char_pt= r.\\*psnp->char_ptr\",exp=3D\"\\*psnp->char_ptr\",numchild=3D\"1\",type=3D\= "char \\*\\*\\*\"\}\\\]" \ "get children of psnp->char_ptr" =20 # Test: c_variable-5.12 @@ -880,7 +880,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.13 # Desc: children of *(psnp->char_ptr) mi_gdb_test "-var-list-children psnp->char_ptr.*psnp->char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->char_ptr.= \\*psnp->char_ptr.\\*\\*psnp->char_ptr\",exp=3D\"\\*\\*psnp->char_ptr\",num= child=3D\"1\",type=3D\"char \\*\\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->char_pt= r.\\*psnp->char_ptr.\\*\\*psnp->char_ptr\",exp=3D\"\\*\\*psnp->char_ptr\",n= umchild=3D\"1\",type=3D\"char \\*\\*\"\}\\\]" \ "get children of psnp->char_ptr.*psnp->char_ptr" =20 # Test: c_variable-5.14 @@ -892,13 +892,13 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.15 # Desc: children of *(*(psnp->char_ptr)) mi_gdb_test "-var-list-children psnp->char_ptr.*psnp->char_ptr.**psnp->cha= r_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->char_ptr.= \\*psnp->char_ptr.\\*\\*psnp->char_ptr.\\*\\*\\*psnp->char_ptr\",exp=3D\"\\= *\\*\\*psnp->char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->char_pt= r.\\*psnp->char_ptr.\\*\\*psnp->char_ptr.\\*\\*\\*psnp->char_ptr\",exp=3D\"= \\*\\*\\*psnp->char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\}\\\]" \ "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr" =20 # Test: c_variable-5.15B # Desc: children of *(*(*(psnp->char_ptr))) mi_gdb_test "-var-list-children psnp->char_ptr.*psnp->char_ptr.**psnp->cha= r_ptr.***psnp->char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->char_ptr.= \\*psnp->char_ptr.\\*\\*psnp->char_ptr.\\*\\*\\*psnp->char_ptr.\\*\\*\\*\\*= psnp->char_ptr\",exp=3D\"\\*\\*\\*\\*psnp->char_ptr\",numchild=3D\"0\",type= =3D\"char\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->char_pt= r.\\*psnp->char_ptr.\\*\\*psnp->char_ptr.\\*\\*\\*psnp->char_ptr.\\*\\*\\*\= \*psnp->char_ptr\",exp=3D\"\\*\\*\\*\\*psnp->char_ptr\",numchild=3D\"0\",ty= pe=3D\"char\"\}\\\]" \ "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr" =20 # Test: c_variable-5.16 @@ -910,7 +910,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.17 # Desc: children of *(*(*(psnp->char_ptr))) mi_gdb_test "-var-list-children psnp->char_ptr.*psnp->char_ptr.**psnp->cha= r_ptr.***psnp->char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->char_ptr.= \\*psnp->char_ptr.\\*\\*psnp->char_ptr.\\*\\*\\*psnp->char_ptr.\\*\\*\\*\\*= psnp->char_ptr\",exp=3D\"\\*\\*\\*\\*psnp->char_ptr\",numchild=3D\"0\",type= =3D\"char\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->char_pt= r.\\*psnp->char_ptr.\\*\\*psnp->char_ptr.\\*\\*\\*psnp->char_ptr.\\*\\*\\*\= \*psnp->char_ptr\",exp=3D\"\\*\\*\\*\\*psnp->char_ptr\",numchild=3D\"0\",ty= pe=3D\"char\"\}\\\]" \ "get children of psnp->char_ptr.*psnp->char_ptr.**psnp->char_ptr.***psnp-= >char_ptr" =20 # Test: c_variable-5.18 @@ -941,7 +941,7 @@ mi_gdb_test "-var-create psnp->long_ptr # Test: c_variable-5.20 # Desc: children of psnp->long_ptr mi_gdb_test "-var-list-children psnp->long_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->long_ptr.= \\*psnp->long_ptr\",exp=3D\"\\*psnp->long_ptr\",numchild=3D\"1\",type=3D\"l= ong int \\*\\*\\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->long_pt= r.\\*psnp->long_ptr\",exp=3D\"\\*psnp->long_ptr\",numchild=3D\"1\",type=3D\= "long int \\*\\*\\*\"\}\\\]" \ "get children of psnp->long_ptr" =20 # Test: c_variable-5.21 @@ -953,7 +953,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.22 # Desc: children of *(psnp->long_ptr) mi_gdb_test "-var-list-children psnp->long_ptr.*psnp->long_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->long_ptr.= \\*psnp->long_ptr.\\*\\*psnp->long_ptr\",exp=3D\"\\*\\*psnp->long_ptr\",num= child=3D\"1\",type=3D\"long int \\*\\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->long_pt= r.\\*psnp->long_ptr.\\*\\*psnp->long_ptr\",exp=3D\"\\*\\*psnp->long_ptr\",n= umchild=3D\"1\",type=3D\"long int \\*\\*\"\}\\\]" \ "get children of psnp->long_ptr.*psnp->long_ptr" =20 =20 @@ -966,7 +966,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.24 # Desc: children of *(*(psnp->long_ptr)) mi_gdb_test "-var-list-children psnp->long_ptr.*psnp->long_ptr.**psnp->lon= g_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->long_ptr.= \\*psnp->long_ptr.\\*\\*psnp->long_ptr.\\*\\*\\*psnp->long_ptr\",exp=3D\"\\= *\\*\\*psnp->long_ptr\",numchild=3D\"1\",type=3D\"long int \\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->long_pt= r.\\*psnp->long_ptr.\\*\\*psnp->long_ptr.\\*\\*\\*psnp->long_ptr\",exp=3D\"= \\*\\*\\*psnp->long_ptr\",numchild=3D\"1\",type=3D\"long int \\*\"\}\\\]" \ "get children of psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr" =20 # Test: c_variable-5.25 @@ -978,7 +978,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.26 # Desc: children of *(*(*(psnp->long_ptr))) mi_gdb_test "-var-list-children psnp->long_ptr.*psnp->long_ptr.**psnp->lon= g_ptr.***psnp->long_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->long_ptr.= \\*psnp->long_ptr.\\*\\*psnp->long_ptr.\\*\\*\\*psnp->long_ptr.\\*\\*\\*\\*= psnp->long_ptr\",exp=3D\"\\*\\*\\*\\*psnp->long_ptr\",numchild=3D\"0\",type= =3D\"long int\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->long_pt= r.\\*psnp->long_ptr.\\*\\*psnp->long_ptr.\\*\\*\\*psnp->long_ptr.\\*\\*\\*\= \*psnp->long_ptr\",exp=3D\"\\*\\*\\*\\*psnp->long_ptr\",numchild=3D\"0\",ty= pe=3D\"long int\"\}\\\]" \ "get children of psnp->long_ptr.*psnp->long_ptr.**psnp->long_ptr.***psnp-= >long_ptr" =20 # Test: c_variable-5.27 @@ -1008,7 +1008,7 @@ mi_gdb_test "-var-create psnp->ptrs *=20=20 # Test: c_variable-5.31 # Desc: children of psnp->ptrs mi_gdb_test "-var-list-children psnp->ptrs" \ - "\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0\",= exp=3D\"0\",numchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\},chil= d=3D\{name=3D\"psnp->ptrs.1\",exp=3D\"1\",numchild=3D\"4\",type=3D\"struct = _struct_n_pointer \\*\"\},child=3D\{name=3D\"psnp->ptrs.2\",exp=3D\"2\",num= child=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\}\}" \ + "\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0\= ",exp=3D\"0\",numchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\},ch= ild=3D\{name=3D\"psnp->ptrs.1\",exp=3D\"1\",numchild=3D\"4\",type=3D\"struc= t _struct_n_pointer \\*\"\},child=3D\{name=3D\"psnp->ptrs.2\",exp=3D\"2\",n= umchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\}\\\]" \ "get children of psnp->ptrs" =20 # Test: c_variable-5.32 @@ -1020,7 +1020,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.33 # Desc: children of psnp->ptrs[0] mi_gdb_test "-var-list-children psnp->ptrs.0" \ - "\\^done,numchild=3D\"4\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ch= ar_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\\*\\*\\*\"\}= ,child=3D\{name=3D\"psnp->ptrs.0.long_ptr\",exp=3D\"long_ptr\",numchild=3D\= "1\",type=3D\"long int \\*\\*\\*\\*\"\},child=3D\{name=3D\"psnp->ptrs.0.ptr= s\",exp=3D\"ptrs\",numchild=3D\"3\",type=3D\"struct _struct_n_pointer \\*\\= \[3\\\]\"\},child=3D\{name=3D\"psnp->ptrs.0.next\",exp=3D\"next\",numchild= =3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\}\}" \ + "\\^done,numchild=3D\"4\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\\*\\*\\*\"= \},child=3D\{name=3D\"psnp->ptrs.0.long_ptr\",exp=3D\"long_ptr\",numchild= =3D\"1\",type=3D\"long int \\*\\*\\*\\*\"\},child=3D\{name=3D\"psnp->ptrs.0= .ptrs\",exp=3D\"ptrs\",numchild=3D\"3\",type=3D\"struct _struct_n_pointer \= \*\\\[3\\\]\"\},child=3D\{name=3D\"psnp->ptrs.0.next\",exp=3D\"next\",numch= ild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\}\\\]" \ "get children of psnp->ptrs.0" =20 # Test: c_variable-5.34 @@ -1032,7 +1032,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.35 # Desc: children of psnp->ptrs[0]->next mi_gdb_test "-var-list-children psnp->ptrs.0.next" \ - "\\^done,numchild=3D\"4\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\\*\\*\\= *\"\},child=3D\{name=3D\"psnp->ptrs.0.next.long_ptr\",exp=3D\"long_ptr\",nu= mchild=3D\"1\",type=3D\"long int \\*\\*\\*\\*\"\},child=3D\{name=3D\"psnp->= ptrs.0.next.ptrs\",exp=3D\"ptrs\",numchild=3D\"3\",type=3D\"struct _struct_= n_pointer \\*\\\[3\\\]\"\},child=3D\{name=3D\"psnp->ptrs.0.next.next\",exp= =3D\"next\",numchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\}\}" \ + "\\^done,numchild=3D\"4\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\\*\\*= \\*\"\},child=3D\{name=3D\"psnp->ptrs.0.next.long_ptr\",exp=3D\"long_ptr\",= numchild=3D\"1\",type=3D\"long int \\*\\*\\*\\*\"\},child=3D\{name=3D\"psnp= ->ptrs.0.next.ptrs\",exp=3D\"ptrs\",numchild=3D\"3\",type=3D\"struct _struc= t_n_pointer \\*\\\[3\\\]\"\},child=3D\{name=3D\"psnp->ptrs.0.next.next\",ex= p=3D\"next\",numchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\}\\\]= " \ "get children of psnp->ptrs.0.next" =20 #} {char_ptr long_ptr ptrs next} @@ -1047,7 +1047,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.37 # Desc: children of psnp->ptrs[0]->next->char_ptr mi_gdb_test "-var-list-children psnp->ptrs.0.next.char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.char_ptr.\\*char_ptr\",exp=3D\"\\*char_ptr\",numchild=3D\"1\",type=3D\"c= har \\*\\*\\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.char_ptr.\\*char_ptr\",exp=3D\"\\*char_ptr\",numchild=3D\"1\",type=3D\= "char \\*\\*\\*\"\}\\\]" \ "get children of psnp->ptrs.0.next.char_ptr" =20 #gdbtk_test c_variable-5.37 {children of psnp->ptrs[0]->next->char_ptr} { @@ -1063,7 +1063,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.39 # Desc: children of *psnp->ptrs[0]->next->char_ptr mi_gdb_test "-var-list-children psnp->ptrs.0.next.char_ptr.*char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.char_ptr.\\*char_ptr.\\*\\*char_ptr\",exp=3D\"\\*\\*char_ptr\",numchild= =3D\"1\",type=3D\"char \\*\\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.char_ptr.\\*char_ptr.\\*\\*char_ptr\",exp=3D\"\\*\\*char_ptr\",numchil= d=3D\"1\",type=3D\"char \\*\\*\"\}\\\]" \ "get children of psnp->ptrs.0.next.char_ptr.*char_ptr" =20 # Test: c_variable-5.40 @@ -1075,13 +1075,13 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.41 # Desc: children of **psnp->ptrs[0]->next->char_ptr mi_gdb_test "-var-list-children psnp->ptrs.0.next.char_ptr.*char_ptr.**cha= r_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.char_ptr.\\*char_ptr.\\*\\*char_ptr.\\*\\*\\*char_ptr\",exp=3D\"\\*\\*\\= *char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.char_ptr.\\*char_ptr.\\*\\*char_ptr.\\*\\*\\*char_ptr\",exp=3D\"\\*\\*= \\*char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\}\\\]" \ "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr" =20 # Test: c_variable-5.41B # Desc: children of ***psnp->ptrs[0]->next->char_ptr mi_gdb_test "-var-list-children psnp->ptrs.0.next.char_ptr.*char_ptr.**cha= r_ptr.***char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.char_ptr.\\*char_ptr.\\*\\*char_ptr.\\*\\*\\*char_ptr.\\*\\*\\*\\*char_p= tr\",exp=3D\"\\*\\*\\*\\*char_ptr\",numchild=3D\"0\",type=3D\"char\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.char_ptr.\\*char_ptr.\\*\\*char_ptr.\\*\\*\\*char_ptr.\\*\\*\\*\\*char= _ptr\",exp=3D\"\\*\\*\\*\\*char_ptr\",numchild=3D\"0\",type=3D\"char\"\}\\\= ]" \ "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr" =20 # Test: c_variable-5.42 @@ -1093,7 +1093,7 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.43 # Desc: children of ***psnp->ptrs[0]->next->char_ptr mi_gdb_test "-var-list-children psnp->ptrs.0.next.char_ptr.*char_ptr.**cha= r_ptr.***char_ptr" \ - "\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.char_ptr.\\*char_ptr.\\*\\*char_ptr.\\*\\*\\*char_ptr.\\*\\*\\*\\*char_p= tr\",exp=3D\"\\*\\*\\*\\*char_ptr\",numchild=3D\"0\",type=3D\"char\"\}\}" \ + "\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.char_ptr.\\*char_ptr.\\*\\*char_ptr.\\*\\*\\*char_ptr.\\*\\*\\*\\*char= _ptr\",exp=3D\"\\*\\*\\*\\*char_ptr\",numchild=3D\"0\",type=3D\"char\"\}\\\= ]" \ "get children of psnp->ptrs.0.next.char_ptr.*char_ptr.**char_ptr.***char_= ptr" =20 # Test: c_variable-5.44 @@ -1117,13 +1117,13 @@ mi_gdb_test "-var-info-num-children psnp # Test: c_variable-5.45 # Desc: children of psnp->ptrs[0]->next->next mi_gdb_test "-var-list-children psnp->ptrs.0.next.next" \ - "\\^done,numchild=3D\"4\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.next.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\\*= \\*\\*\"\},child=3D\{name=3D\"psnp->ptrs.0.next.next.long_ptr\",exp=3D\"lon= g_ptr\",numchild=3D\"1\",type=3D\"long int \\*\\*\\*\\*\"\},child=3D\{name= =3D\"psnp->ptrs.0.next.next.ptrs\",exp=3D\"ptrs\",numchild=3D\"3\",type=3D\= "struct _struct_n_pointer \\*\\\[3\\\]\"\},child=3D\{name=3D\"psnp->ptrs.0.= next.next.next\",exp=3D\"next\",numchild=3D\"4\",type=3D\"struct _struct_n_= pointer \\*\"\}\}" \ + "\\^done,numchild=3D\"4\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.next.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\= \*\\*\\*\"\},child=3D\{name=3D\"psnp->ptrs.0.next.next.long_ptr\",exp=3D\"l= ong_ptr\",numchild=3D\"1\",type=3D\"long int \\*\\*\\*\\*\"\},child=3D\{nam= e=3D\"psnp->ptrs.0.next.next.ptrs\",exp=3D\"ptrs\",numchild=3D\"3\",type=3D= \"struct _struct_n_pointer \\*\\\[3\\\]\"\},child=3D\{name=3D\"psnp->ptrs.0= .next.next.next\",exp=3D\"next\",numchild=3D\"4\",type=3D\"struct _struct_n= _pointer \\*\"\}\\\]" \ "get children of psnp->ptrs.0.next.next" =20 # Test: c_variable-5.46 # Desc: children of psnp->ptrs[0]->next->next->ptrs mi_gdb_test "-var-list-children psnp->ptrs.0.next.next.ptrs" \ - "\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"psnp->ptrs.0.ne= xt.next.ptrs.0\",exp=3D\"0\",numchild=3D\"4\",type=3D\"struct _struct_n_poi= nter \\*\"\},child=3D\{name=3D\"psnp->ptrs.0.next.next.ptrs.1\",exp=3D\"1\"= ,numchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\},child=3D\{name= =3D\"psnp->ptrs.0.next.next.ptrs.2\",exp=3D\"2\",numchild=3D\"4\",type=3D\"= struct _struct_n_pointer \\*\"\}\}" \ + "\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D\"psnp->ptrs.0.= next.next.ptrs.0\",exp=3D\"0\",numchild=3D\"4\",type=3D\"struct _struct_n_p= ointer \\*\"\},child=3D\{name=3D\"psnp->ptrs.0.next.next.ptrs.1\",exp=3D\"1= \",numchild=3D\"4\",type=3D\"struct _struct_n_pointer \\*\"\},child=3D\{nam= e=3D\"psnp->ptrs.0.next.next.ptrs.2\",exp=3D\"2\",numchild=3D\"4\",type=3D\= "struct _struct_n_pointer \\*\"\}\\\]" \ "get children of psnp->ptrs.0.next.next.ptrs" =20 # Step over "snp0.char_ptr =3D &b3;" Index: testsuite/gdb.mi/mi-var-display.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-display.exp,v retrieving revision 1.8 diff -u -p -r1.8 mi-var-display.exp --- testsuite/gdb.mi/mi-var-display.exp 17 Sep 2002 20:30:24 -0000 1.8 +++ testsuite/gdb.mi/mi-var-display.exp 10 Nov 2002 08:06:10 -0000 @@ -183,7 +183,7 @@ mi_gdb_test "-var-create weird * weird"=20 "create local variable weird" =20 mi_gdb_test "-var-list-children weird" \ - "\\^done,numchild=3D\"11\",children=3D\{child=3D\{name=3D\"weird.integer\= ",exp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"we= ird.character\",exp=3D\"character\",numchild=3D\"0\",type=3D\"char\"\},chil= d=3D{name=3D\"weird.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\= "char \\*\"\},child=3D\{name=3D\"weird.long_int\",exp=3D\"long_int\",numchi= ld=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.int_ptr_ptr\",exp= =3D\"int_ptr_ptr\",numchild=3D\"1\",type=3D\"int \\*\\*\"\},child=3D\{name= =3D\"weird.long_array\",exp=3D\"long_array\",numchild=3D\"10\",type=3D\"lon= g int \\\[10\\\]\"\},child=3D\{name=3D\"weird.func_ptr\",exp=3D\"func_ptr\"= ,numchild=3D\"0\",type=3D\"void \\(\\*\\)\\(\\)\"\},child=3D\{name=3D\"weir= d.func_ptr_struct\",exp=3D\"func_ptr_struct\",numchild=3D\"0\",type=3D\"str= uct _struct_decl \\(\\*\\)\\(\\)\"\},child=3D\{name=3D\"weird.func_ptr_ptr\= ",exp=3D\"func_ptr_ptr\",numchild=3D\"0\",type=3D\"struct _struct_decl \\*\= \(\\*\\)\\(\\)\"\},child=3D\{name=3D\"weird.u1\",exp=3D\"u1\",numchild=3D\"= 4\",type=3D\"union \{\\.\\.\\.\}\"\},child=3D\{name=3D\"weird.s2\",exp=3D\"= s2\",numchild=3D\"4\",type=3D\"struct \{\\.\\.\\.\}\"\}\}" \ + "\\^done,numchild=3D\"11\",children=3D\\\[child=3D\{name=3D\"weird.intege= r\",exp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"= weird.character\",exp=3D\"character\",numchild=3D\"0\",type=3D\"char\"\},ch= ild=3D{name=3D\"weird.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type= =3D\"char \\*\"\},child=3D\{name=3D\"weird.long_int\",exp=3D\"long_int\",nu= mchild=3D\"0\",type=3D\"long int\"\},child=3D\{name=3D\"weird.int_ptr_ptr\"= ,exp=3D\"int_ptr_ptr\",numchild=3D\"1\",type=3D\"int \\*\\*\"\},child=3D\{n= ame=3D\"weird.long_array\",exp=3D\"long_array\",numchild=3D\"10\",type=3D\"= long int \\\[10\\\]\"\},child=3D\{name=3D\"weird.func_ptr\",exp=3D\"func_pt= r\",numchild=3D\"0\",type=3D\"void \\(\\*\\)\\(\\)\"\},child=3D\{name=3D\"w= eird.func_ptr_struct\",exp=3D\"func_ptr_struct\",numchild=3D\"0\",type=3D\"= struct _struct_decl \\(\\*\\)\\(\\)\"\},child=3D\{name=3D\"weird.func_ptr_p= tr\",exp=3D\"func_ptr_ptr\",numchild=3D\"0\",type=3D\"struct _struct_decl \= \*\\(\\*\\)\\(\\)\"\},child=3D\{name=3D\"weird.u1\",exp=3D\"u1\",numchild= =3D\"4\",type=3D\"union \{\\.\\.\\.\}\"\},child=3D\{name=3D\"weird.s2\",exp= =3D\"s2\",numchild=3D\"4\",type=3D\"struct \{\\.\\.\\.\}\"\}\\\]" \ "get children local variable weird" =20 =20 @@ -371,7 +371,7 @@ mi_gdb_test "-var-info-num-children u" \ # Test: c_variable-7.15 # Desc: children of u mi_gdb_test "-var-list-children u" \ - "\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"u.integer\",exp= =3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"u.char_= ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\}\}" \ + "\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D\"u.integer\",e= xp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"u.cha= r_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\}\\\]" \ "get children of u" =20 # Test: c_variable-7.20 @@ -407,7 +407,7 @@ mi_gdb_test "-var-info-num-children anon # Test: c_variable-7.25 # Desc: children of anonu mi_gdb_test "-var-list-children anonu" \ - "\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"anonu.a\",exp= =3D\"a\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"anonu.b\",exp= =3D\"b\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"anonu.c\",ex= p=3D\"c\",numchild=3D\"0\",type=3D\"long int\"\}\}" \ + "\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D\"anonu.a\",exp= =3D\"a\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"anonu.b\",exp= =3D\"b\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"anonu.c\",ex= p=3D\"c\",numchild=3D\"0\",type=3D\"long int\"\}\\\]" \ "get children of anonu" =20 # Test: c_variable-7.30 @@ -444,7 +444,7 @@ mi_gdb_test "-var-info-num-children s" \ # Test: c_variable-7.35 # Desc: children of s mi_gdb_test "-var-list-children s" \ - "\\^done,numchild=3D\"6\",children=3D\{child=3D\{name=3D\"s.integer\",exp= =3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"s.unsig= ned_integer\",exp=3D\"unsigned_integer\",numchild=3D\"0\",type=3D\"unsigned= int\"\},child=3D\{name=3D\"s.character\",exp=3D\"character\",numchild=3D\"= 0\",type=3D\"char\"\},child=3D\{name=3D\"s.signed_character\",exp=3D\"signe= d_character\",numchild=3D\"0\",type=3D\"signed char\"\},child=3D\{name=3D\"= s.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\},chil= d=3D\{name=3D\"s.array_of_10\",exp=3D\"array_of_10\",numchild=3D\"10\",type= =3D\"int \\\[10\\\]\"\}\}" \ + "\\^done,numchild=3D\"6\",children=3D\\\[child=3D\{name=3D\"s.integer\",e= xp=3D\"integer\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"s.uns= igned_integer\",exp=3D\"unsigned_integer\",numchild=3D\"0\",type=3D\"unsign= ed int\"\},child=3D\{name=3D\"s.character\",exp=3D\"character\",numchild=3D= \"0\",type=3D\"char\"\},child=3D\{name=3D\"s.signed_character\",exp=3D\"sig= ned_character\",numchild=3D\"0\",type=3D\"signed char\"\},child=3D\{name=3D= \"s.char_ptr\",exp=3D\"char_ptr\",numchild=3D\"1\",type=3D\"char \\*\"\},ch= ild=3D\{name=3D\"s.array_of_10\",exp=3D\"array_of_10\",numchild=3D\"10\",ty= pe=3D\"int \\\[10\\\]\"\}\\\]" \ "get children of s" #} {integer unsigned_integer character signed_character char_ptr array_of_= 10} =20 @@ -481,7 +481,7 @@ mi_gdb_test "-var-info-num-children anon # Test: c_variable-7.45 # Desc: children of anons mi_gdb_test "-var-list-children anons" \ - "\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"anons.a\",exp= =3D\"a\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"anons.b\",exp= =3D\"b\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"anons.c\",ex= p=3D\"c\",numchild=3D\"0\",type=3D\"long int\"\}\}" \ + "\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D\"anons.a\",exp= =3D\"a\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{name=3D\"anons.b\",exp= =3D\"b\",numchild=3D\"0\",type=3D\"char\"\},child=3D\{name=3D\"anons.c\",ex= p=3D\"c\",numchild=3D\"0\",type=3D\"long int\"\}\\\]" \ "get children of anons" =20 =20 Index: testsuite/gdb.mi/gdb792.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/gdb792.exp,v retrieving revision 1.1 diff -u -p -r1.1 gdb792.exp --- testsuite/gdb.mi/gdb792.exp 5 Nov 2002 22:31:32 -0000 1.1 +++ testsuite/gdb.mi/gdb792.exp 10 Nov 2002 08:06:10 -0000 @@ -51,31 +51,31 @@ mi_gdb_test "-var-create - * a" \ "create var for class A" =20 mi_gdb_test "-var-list-children var1" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"= var1\.public\",exp=3D\"public\",numchild=3D\"2\"\},child=3D\{name=3D\"var1\= .private\",exp=3D\"private\",numchild=3D\"2\"\},child=3D\{name=3D\"var1\.pr= otected\",exp=3D\"protected\",numchild=3D\"2\"\}\}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D= \"var1\.public\",exp=3D\"public\",numchild=3D\"2\"\},child=3D\{name=3D\"var= 1\.private\",exp=3D\"private\",numchild=3D\"2\"\},child=3D\{name=3D\"var1\.= protected\",exp=3D\"protected\",numchild=3D\"2\"\}\\\]" \ "list children of class A" =20 mi_gdb_test "-var-list-children var1.public" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"= var1\.public\.x\",exp=3D\"x\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{n= ame=3D\"var1\.public\.buffer\",exp=3D\"buffer\",numchild=3D\"10\",type=3D\"= char \\\[10\\\]\"\}\}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D= \"var1\.public\.x\",exp=3D\"x\",numchild=3D\"0\",type=3D\"int\"\},child=3D\= {name=3D\"var1\.public\.buffer\",exp=3D\"buffer\",numchild=3D\"10\",type=3D= \"char \\\[10\\\]\"\}\\\]" \ "list children of A.public" =20 mi_gdb_test "-var-list-children var1.private" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"= var1\.private\.u\",exp=3D\"u\",numchild=3D\"0\",type=3D\"int\"\},child=3D\{= name=3D\"var1\.private\.z\",exp=3D\"z\",numchild=3D\"0\",type=3D\"float\"\}= \}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D= \"var1\.private\.u\",exp=3D\"u\",numchild=3D\"0\",type=3D\"int\"\},child=3D= \{name=3D\"var1\.private\.z\",exp=3D\"z\",numchild=3D\"0\",type=3D\"float\"= \}\\\]" \ "list children of A.private" =20 mi_gdb_test "-var-list-children var1.protected" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"= var1\.protected\.y\",exp=3D\"y\",numchild=3D\"0\",type=3D\"int\"\},child=3D= \{name=3D\"var1\.protected\.b\",exp=3D\"b\",numchild=3D\"2\",type=3D\"B\"\}= \}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D= \"var1\.protected\.y\",exp=3D\"y\",numchild=3D\"0\",type=3D\"int\"\},child= =3D\{name=3D\"var1\.protected\.b\",exp=3D\"b\",numchild=3D\"2\",type=3D\"B\= "\}\\\]" \ "list children of A.protected" =20 mi_gdb_test "-var-list-children var1.protected.b" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"= var1\.protected\.b\.public\",exp=3D\"public\",numchild=3D\"2\"\},child=3D\{= name=3D\"var1\.protected\.b\.private\",exp=3D\"private\",numchild=3D\"1\"\}= \}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D= \"var1\.protected\.b\.public\",exp=3D\"public\",numchild=3D\"2\"\},child=3D= \{name=3D\"var1\.protected\.b\.private\",exp=3D\"private\",numchild=3D\"1\"= \}\\\]" \ "list children of A.protected.b" =20 mi_gdb_test "-var-list-children var1.protected.b.public" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\{child=3D\{name=3D\"= var1\.protected\.b\.public\.bx\",exp=3D\"bx\",numchild=3D\"0\",type=3D\"int= \"\},child=3D\{name=3D\"var1\.protected\.b\.public\.by\",exp=3D\"by\",numch= ild=3D\"0\",type=3D\"int\"\}\}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"2\",children=3D\\\[child=3D\{name=3D= \"var1\.protected\.b\.public\.bx\",exp=3D\"bx\",numchild=3D\"0\",type=3D\"i= nt\"\},child=3D\{name=3D\"var1\.protected\.b\.public\.by\",exp=3D\"by\",num= child=3D\"0\",type=3D\"int\"\}\\\]" \ "list children of A.protected.b.public" =20 mi_gdb_test "-var-list-children var1.protected.b.private" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"1\",children=3D\{child=3D\{name=3D\"= var1\.protected\.b\.private\.k\",exp=3D\"k\",numchild=3D\"0\",type=3D\"int\= "\}\}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"1\",children=3D\\\[child=3D\{name=3D= \"var1\.protected\.b\.private\.k\",exp=3D\"k\",numchild=3D\"0\",type=3D\"in= t\"\}\\\]" \ "list children of A.protected.b.private" =20 mi_gdb_test "-var-create - * c" \ @@ -83,7 +83,7 @@ mi_gdb_test "-var-create - * c" \ "create var for class C which has baseclass A" =20 mi_gdb_test "-var-list-children var2" \ - "(&\".*\"\r\n)*\\^done,numchild=3D\"3\",children=3D\{child=3D\{name=3D\"= var2\.A\",exp=3D\"A\",numchild=3D\"3\",type=3D\"A\"\},child=3D\{name=3D\"va= r2\.public\",exp=3D\"public\",numchild=3D\"1\"\},child=3D\{name=3D\"var2\.p= rivate\",exp=3D\"private\",numchild=3D\"1\"\}\}" \ + "(&\".*\"\r\n)*\\^done,numchild=3D\"3\",children=3D\\\[child=3D\{name=3D= \"var2\.A\",exp=3D\"A\",numchild=3D\"3\",type=3D\"A\"\},child=3D\{name=3D\"= var2\.public\",exp=3D\"public\",numchild=3D\"1\"\},child=3D\{name=3D\"var2\= .private\",exp=3D\"private\",numchild=3D\"1\"\}\\\]" \ "list children of class C" =20 mi_gdb_exit --6c2NcOVqGQ03X4Wi--