Re: can't handle command-line argument containing whitespace
Peng Yu <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CABrM6wmCJJdGP4WR9kL-doPZRsR1a5jWyVgzMbFaO39sVK7Ncw@mail.gmail.com> |
> Try this GDB command: > > (gdb) set startup-with-shell on But it doesn't work with the -batch option. It hangs there forever. How to fix it? Thanks. $ gdb -batch -ex 'set startup-with-shell on' -ex run --args ./main.exe 'a b c' [New Thread 0x1803 of process 56945] -- Regards, Peng