From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25844 invoked by alias); 16 Sep 2012 12:18:52 -0000 Received: (qmail 25834 invoked by uid 22791); 16 Sep 2012 12:18:50 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Sep 2012 12:18:37 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MAF00D00ZE6X400@a-mtaout22.012.net.il> for gdb@sourceware.org; Sun, 16 Sep 2012 15:18:35 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAF00DPNZIZVJ30@a-mtaout22.012.net.il>; Sun, 16 Sep 2012 15:18:35 +0300 (IDT) Date: Sun, 16 Sep 2012 12:18:00 -0000 From: Eli Zaretskii Subject: Re: "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4) In-reply-to: <5055B45A.8040905@mfriebe.de> To: Martin Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83y5kaqhy8.fsf@gnu.org> References: <5055B45A.8040905@mfriebe.de> X-IsSubscribed: yes 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 X-SW-Source: 2012-09/txt/msg00046.txt.bz2 > Date: Sun, 16 Sep 2012 12:13:30 +0100 > From: Martin > > I found that gdb (tested 7.5 and 7.4) on win 32 (tested on vista) does > ignore --all as argument for the debuggee. > -exec-arguments --all > > start gdb with > gdb -i mi yourexe.exe > > and enter > -exec-arguments --all > -exec-run > > the exe will not see the argument. It works with any other argument, > that I tested. I see the same on GNU/Linux, so it's not a Windows-only thing. > Does any one know why? Seems like a bug to me: mi/mi-parse.c:mi_parse eats up the --all part, probably in order to handle commands related to all thread groupd, all inferiors, etc. > Or how to solve? Quote it, like this: -exec-arguments "--all" (If the special treatment of --all is not a bug, this should be documented, including the quoting fire-escape.)