This is the mail archive of the gdb@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]

Re: can't handle command-line argument containing whitespace


> 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


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