From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42893 invoked by alias); 21 Jan 2019 13:16:56 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 42856 invoked by uid 89); 21 Jan 2019 13:16:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:D477152, Hx-languages-length:349, H*f:sk:D477152 X-HELO: mail-io1-f48.google.com Received: from mail-io1-f48.google.com (HELO mail-io1-f48.google.com) (209.85.166.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Jan 2019 13:16:54 +0000 Received: by mail-io1-f48.google.com with SMTP id t24so16384661ioi.0 for ; Mon, 21 Jan 2019 05:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jNlMmijwWdICkD6MVzCwwuHvz2dMkWcXO3tzl6NolAg=; b=BDS0n3DU4LfvWUcGPJWwQmFvytURPXuJVvKNJ737QUf/b3iXGbcyNtU407DM3k5HHs sbDrL2YduEh/h9TTg3h/+FxSDcMRg6672JGkB83sKS0gM/2Ofy3nIyGMmA6+NrexHZut aHetNibAMN+oecUWKo5VqDdqiI/LjSOYaLeM47lBLqS/uJuMjAA2ty9SRxvSbd/slPmA JhRw6KhN5XznGT+rDV6731+H7qzX6Gem86gAIoP7XbQ74eOso3wZHBpBt2uQEVlp4zu0 xvDXkfG5S+J/Fewwd5atyIr7uP1dwqdsJVQD0odIZkiZTDt/6OIA7Ayftyp2zKcdNJ6m 9Tdw== MIME-Version: 1.0 References: In-Reply-To: From: Peng Yu Date: Mon, 21 Jan 2019 13:16:00 -0000 Message-ID: Subject: Re: can't handle command-line argument containing whitespace To: Eli Zaretskii Cc: "gdb@sourceware.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00016.txt.bz2 > 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