Description of problem: This doesn't work properly: gdb --args myprogram arg1 '' arg3 Version-Release number of selected component (if applicable): gdb-5.3post-0.20021129.3 How reproducible: 100% Steps to Reproduce: $ cat <<EOF >args.c #include <stdio.h> int main (int argc) { printf ("%d\n", argc); } EOF $ make args $ gdb --args ./args 1 '' 3 (gdb) r Actual results: 3 Expected results: 4
Yes, thanks. There will be a fix in the next release.
I pulled in a patch for this.