Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* can't handle command-line argument containing whitespace
@ 2019-01-21  4:50 Peng Yu
  2019-01-21 10:19 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Peng Yu @ 2019-01-21  4:50 UTC (permalink / raw)
  To: gdb

Hi,

I got the following error. Is there a way to allow gdb accept
arguments with whitespaces? Thanks

$ ./main.exe 'a b c'
a b c
$ cat main.c
/* vim: set noexpandtab tabstop=2: */
#include <stdio.h>

int main(int argc, char *argv[]) {
    puts(argv[1]);
    return 0;
}
$ gdb -q --args main.exe  'a b c'
Reading symbols from main.exe...(no debugging symbols found)...done.
(gdb) r
Starting program: /root/linux/test/gnu/gdb/bin/--args/main.exe can't
handle command-line argument containing whitespace
(gdb)

-- 
Regards,
Peng


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-21 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21  4:50 can't handle command-line argument containing whitespace Peng Yu
2019-01-21 10:19 ` Eli Zaretskii
2019-01-21 13:16   ` Peng Yu
2019-01-21 15:49     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox