This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/20559] "eval" command inside user commands misses $arg0...$arg9 / $argc substitution
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 06 Sep 2016 11:18:00 +0000
- Subject: [Bug cli/20559] "eval" command inside user commands misses $arg0...$arg9 / $argc substitution
- Auto-submitted: auto-generated
- References: <bug-20559-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20559
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
The problem is that "eval" doesn't to the user-arguments substitution after
expanding its own argument. I'm attaching a quick (not regtested) patch that
makes the example above work:
gdb) test 1
$1 = 1
(gdb) test 1 2
$2 = 1
$3 = 2
(gdb) test 1 2 3
$4 = 1
$5 = 2
$6 = 3
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.