This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH (gdb/mi)
- From: Nick Roberts <nick at nick dot uklinux dot net>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: Jim Ingham <jingham at apple dot com>, gdb-patches at sources dot redhat dot com
- Date: Sat, 1 Nov 2003 17:33:01 +0000
- Subject: Re: PATCH (gdb/mi)
- References: <1067099552.15608.ezmlm@sources.redhat.com><3E1F6428-08B0-11D8-A22C-000A958F4C44@apple.com><3FA17C13.3040300@redhat.com>
> Nick, MI changes need:
>
> - assignment
Who initiates this? I have done it for Emacs. Is it the same process for GDB
i.e REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES to fsf-records@gnu.org
> - testcase
This is harder for me to do than the patch itself, so perhaps you can give me
a few clues. Will two tests for each of mi2-var-child.exp and mi1-var-child.exp
using "-var-list-children struct_declarations 0" and "-var-list-children
struct_declarations 1" suffice ?
> - doco
below
> - patch
Already sent.
If Jim can give you equivalent changes in the near future then that might be
the most simple route. If not, I would like to progress my changes through
the system.
Nick http://www.nick.uklinux.net
*** gdb.texinfo.~1.183.~ 2003-10-24 22:30:49.000000000 +0100
--- gdb.texinfo 2003-11-01 17:14:02.000000000 +0000
***************
*** 18121,18134 ****
@subsubheading Synopsis
@smallexample
! -var-list-children @var{name}
@end smallexample
! Returns a list of the children of the specified variable object:
@smallexample
numchild=@var{n},children=[@{name=@var{name},
numchild=@var{n},type=@var{type}@},@r{(repeats N times)}]
@end smallexample
--- 18121,18145 ----
@subsubheading Synopsis
@smallexample
! -var-list-children @var{name} [PRINT-VALUES]
@end smallexample
! Returns a list of the children of the specified variable object. With
! just the variable object name as an argument or with an optional
! second argument of 0, prints only the names of the variables. With an
! optional second argument of 1, also prints their values.
!
! @subsubheading Example
@smallexample
+ (@value{GDBP})
+ -var-list-children n
numchild=@var{n},children=[@{name=@var{name},
numchild=@var{n},type=@var{type}@},@r{(repeats N times)}]
+ (@value{GDBP})
+ -var-list-children n 1
+ numchild=@var{n},children=[@{name=@var{name},
+ numchild=@var{n},value=@var{VALUE},type=@var{type}@},@r{(repeats N times)}]
@end smallexample