Fix PR 20559 - "eval" command and $arg0...$arg9/$argc substitution
[deliverable/binutils-gdb.git] / gdb / NEWS
index a5974053e45a4f0a71d11bbff7eb88cea609c704..408912443e5b1b1db55887a9a05647ecdc6fb4a0 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
 
 * Support for Java programs compiled with gcj has been removed.
 
+* The "eval" command now expands user-defined command arguments.
+
+  This makes it easier to process a variable number of arguments:
+
+   define mycommand
+     set $i = 0
+     while $i < $argc
+       eval "print $arg%d", $i
+       set $i = $i + 1
+     end
+   end
+
 * New targets
 
 Synopsys ARC                   arc*-*-elf32
This page took 0.026724 seconds and 4 git commands to generate.