From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5977 invoked by alias); 21 Jan 2019 04:50:43 -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 5964 invoked by uid 89); 21 Jan 2019 04:50:42 -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= X-HELO: mail-it1-f176.google.com Received: from mail-it1-f176.google.com (HELO mail-it1-f176.google.com) (209.85.166.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Jan 2019 04:50:41 +0000 Received: by mail-it1-f176.google.com with SMTP id h193so13519884ita.5 for ; Sun, 20 Jan 2019 20:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Gy1XNHgxCZAxmDPf3+eKrVW1GnzB4ys2oaxgECuWgug=; b=n/zFLuuOYH8fIt0lyCpPSSU0ZCAqZGaGa3dc2Q81J/uIARxx/x3tItETF1ipSVYE1m +e15zEslNPUkajTyWchWPFrBGprujylXJjeZ44rsbMxn5WWvgYmxfshBRU5s/ENC98Ls ingK5JhP+KrHZOoGvG7P1ykH730aPucnKxV8Y8aaBK7khHt+OIpm4cQ2utZfV6o3ZQaN sr89c8FUOpnrv68J1uBeaSuxEyc+pv5L3S5N3gcdOB6yNg//37CbI2hj9d3XXgBiY2Ke XW5Cx/rZf8iG7f+tlguScBg3MNCeTUa40F32fG9B7RezVK/nHhp9SH2NZG6kVibUW9MS /dZg== MIME-Version: 1.0 From: Peng Yu Date: Mon, 21 Jan 2019 04:50:00 -0000 Message-ID: Subject: can't handle command-line argument containing whitespace To: "gdb@sourceware.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00014.txt.bz2 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 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