This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: {commit: gdb/mi] -stack-list-locals and -var-list-children
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Nick Roberts <nick at nick dot uklinux dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 20 Jan 2004 00:49:32 -0500
- Subject: Re: {commit: gdb/mi] -stack-list-locals and -var-list-children
- References: <16396.33276.280356.511030@nick.uklinux.net>
On Tue, Jan 20, 2004 at 01:18:52AM +0000, Nick Roberts wrote:
>
> I've comitted the patches below. Testcases don't work for me but I've kept the
> status quo so they should work for others. Diff's have been made with Emacs
> backup files - sorry, should have made the patches before committing, done
> off-line - 64k modem, family to feed etc. I hope they work... Well they
> compile anyway.
No, you've added a failing testcase:
-var-list-children --all-values struct_declarations.long_array
^done,numchild="10",children=[child={name="struct_declarations.long_array.0",exp="0",numchild="0",value=
"1234",type="long
int"},child={name="struct_declarations.long_array.1",exp="1",numchild="0",value="2345"
,type="long
int"},child={name="struct_declarations.long_array.2",exp="2",numchild="0",value="3456",type=
"long
int"},child={name="struct_declarations.long_array.3",exp="3",numchild="0",value="28281",type="long
int"},child={name="struct_declarations.long_array.4",exp="4",numchild="0",value="0",type="long
int"},ch
ild={name="struct_declarations.long_array.5",exp="5",numchild="0",value="0",type="long
int"},child={name
="struct_declarations.long_array.6",exp="6",numchild="0",value="0",type="long
int"},child={name="struct_
declarations.long_array.7",exp="7",numchild="0",value="0",type="long
int"},child={name="struct_declarati
ons.long_array.8",exp="8",numchild="0",value="0",type="long
int"},child={name="struct_declarations.long_
array.9",exp="9",numchild="0",value="0",type="long int"}]
(gdb)
FAIL: gdb.mi/mi-var-child.exp: listing of names and values of children
I'll look at the problem in the morning.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer