From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7991 invoked by alias); 11 Aug 2012 16:20:23 -0000 Received: (qmail 7976 invoked by uid 22791); 11 Aug 2012 16:20:17 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Aug 2012 16:20:02 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M8L00900MDAI400@a-mtaout21.012.net.il> for gdb@sourceware.org; Sat, 11 Aug 2012 19:20:00 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8L009EWMPBKY00@a-mtaout21.012.net.il>; Sat, 11 Aug 2012 19:20:00 +0300 (IDT) Date: Sat, 11 Aug 2012 16:20:00 -0000 From: Eli Zaretskii Subject: Re: what is the "-ex" command option? In-reply-to: <201208111159.16332.vapier@gentoo.org> To: Mike Frysinger Cc: gdb@sourceware.org, horserivers@gmail.com Reply-to: Eli Zaretskii Message-id: <83k3x5csee.fsf@gnu.org> References: <201208111159.16332.vapier@gentoo.org> 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-08/txt/msg00040.txt.bz2 > From: Mike Frysinger > Date: Sat, 11 Aug 2012 11:59:15 -0400 > Cc: Smith John > > $ gdb --help | grep -e--eval-command -A 3 > --eval-command=COMMAND, -ex > Execute a single GDB command. > May be used multiple times and in conjunction > with --command. Btw, the place we show "-ex" on the screen is unfortunate, as it is very hard to find it at first glance. See how it is obscured by text above and below it: --cd=DIR Change current directory to DIR. --command=FILE, -x Execute GDB commands from FILE. --eval-command=COMMAND, -ex Execute a single GDB command. May be used multiple times and in conjunction It would be much better if we reformat the output like this: --cd=DIR Change current directory to DIR. --command=FILE, -x Execute GDB commands from FILE. --eval-command=COMMAND, -ex Execute a single GDB command. May be used multiple times and in conjunction