From patchwork Fri May 23 22:49:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Breazeal X-Patchwork-Id: 1116 Received: (qmail 489 invoked by alias); 23 May 2014 22:49:43 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 467 invoked by uid 89); 23 May 2014 22:49:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 23 May 2014 22:49:41 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WnyHS-0003D3-IK from donb@codesourcery.com for gdb-patches@sourceware.org; Fri, 23 May 2014 15:49:38 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 23 May 2014 15:49:38 -0700 Received: from build2-lucid-cs (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Fri, 23 May 2014 15:49:37 -0700 Received: by build2-lucid-cs (Postfix, from userid 1905) id 7C2083A0945; Fri, 23 May 2014 15:49:37 -0700 (PDT) From: Don Breazeal To: Subject: [PATCH 3/4] Document RSP support for Linux exec events Date: Fri, 23 May 2014 15:49:33 -0700 Message-ID: <1400885374-18915-4-git-send-email-donb@codesourcery.com> In-Reply-To: <1398885482-8449-1-git-send-email-donb@codesourcery.com> References: <1398885482-8449-1-git-send-email-donb@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes This patch adds documentation of the new RSP support for exec events. Regards, --Don gdb/ 2014-05-22 Don Breazeal * NEWS: Mention RSP Stop Reply Packet, new stop reason 'exec'. Mention gdbserver support for exec events on Linux. doc/ 2014-05-22 Don Breazeal * gdb.texinfo (Stop Reply Packets): Document RSP support for exec events. --- gdb/NEWS | 6 ++++++ gdb/doc/gdb.texinfo | 6 ++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index b23c8a0..ffe3520 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -69,6 +69,8 @@ maint ada show ignore-descriptive-types Timestamps can also be turned on with the "monitor set debug-format timestamps" command from GDB. + ** GDBserver on GNU/Linux now supports exec events (follow-exec-mode). + * The 'record instruction-history' command now starts counting instructions at one. This also affects the instruction ranges reported by the 'record function-call-history' command when given the /i modifier. @@ -103,6 +105,10 @@ qXfer:btrace:read's annex The qXfer:btrace:read packet supports a new annex 'delta' to read branch trace incrementally. +T Stop Reply Packet's reason + The T stop reply packet supports a new stop reason, 'exec', signifying + that the specified inferior executed a call to execve. + * Python Scripting ** Valid Python operations on gdb.Value objects representing diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 6092ff4..55f98c3 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -34589,6 +34589,12 @@ The packet indicates that the loaded libraries have changed. @value{GDBN} should use @samp{qXfer:libraries:read} to fetch a new list of loaded libraries. @var{r} is ignored. +@cindex exec events, remote reply +@item exec +The packet indicates that @code{execve} was called, and @var{r} is the +absolute pathname of the file that was executed, in hex. This is +only applicable to certain targets. + @cindex replay log events, remote reply @item replaylog The packet indicates that the target cannot continue replaying