PATCH (gdb/mi)

Nick Roberts nick@nick.uklinux.net
Sat Nov 1 16:40:00 GMT 2003


 > 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
  
  



More information about the Gdb-patches mailing list