From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43574 invoked by alias); 18 Sep 2017 23:15:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 43543 invoked by uid 89); 18 Sep 2017 23:15:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:1235 X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Sep 2017 23:15:13 +0000 Received: from ralph.baldwin.cx (unknown [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 411EA10A7DB for ; Mon, 18 Sep 2017 19:15:05 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Subject: Re: [PATCH v3] Add a 'starti' command. Date: Mon, 18 Sep 2017 23:15:00 -0000 Message-ID: <17542132.en2ZIxUZb9@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <20170911220803.73819-1-jhb@FreeBSD.org> References: <20170911220803.73819-1-jhb@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00457.txt.bz2 On Monday, September 11, 2017 03:08:03 PM John Baldwin wrote: > This works like 'start' but it stops at the first instruction rather than > the first line in main(). This is useful if one wants to single step > through runtime linker startup. > > While here, introduce a RUN_ARGS_HELP macro for shared help text between > run, start, and starti. This includes expanding the help for start and > starti to include details from run's help text. > > gdb/ChangeLog: > > * NEWS (Changes since GDB 8.0): Add starti. > * infcmd.c (enum run_break): New. > (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN > case. > (run_command): Use enum run_how. > (start_command): Likewise. > (starti_command): New function. > (RUN_ARGS_HELP): New macro. > (_initialize_infcmd): Use RUN_ARGS_HELP for run and start > commands. Add starti command. > > gdb/doc/ChangeLog: > > * gdb.texinfo (Starting your Program): Add description of > starti command. Mention starti command as an alternative for > debugging the elaboration phase. > > gdb/testsuite/ChangeLog: > > * gdb.base/starti.c: New file. > * gdb.base/starti.exp: New file. > * lib/gdb.exp (gdb_starti_cmd): New procedure. Ping? -- John Baldwin