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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.