This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/20559] "eval" command inside user commands misses $arg0...$arg9 / $argc substitution


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]