From: Peng Yu <pengyu.ut@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: can't handle command-line argument containing whitespace
Date: Mon, 21 Jan 2019 13:16:00 -0000 [thread overview]
Message-ID: <CABrM6wmCJJdGP4WR9kL-doPZRsR1a5jWyVgzMbFaO39sVK7Ncw@mail.gmail.com> (raw)
In-Reply-To: <D4771524-9806-46A3-AB16-E4D67687395C@gnu.org>
> 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
next prev parent reply other threads:[~2019-01-21 13:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-21 4:50 Peng Yu
2019-01-21 10:19 ` Eli Zaretskii
2019-01-21 13:16 ` Peng Yu [this message]
2019-01-21 15:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABrM6wmCJJdGP4WR9kL-doPZRsR1a5jWyVgzMbFaO39sVK7Ncw@mail.gmail.com \
--to=pengyu.ut@gmail.com \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox