From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18408 invoked by alias); 4 Mar 2014 16:30:26 -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 18398 invoked by uid 89); 4 Mar 2014 16:30:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 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; Tue, 04 Mar 2014 16:30:24 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WKsEW-00030v-Rj from Hui_Zhu@mentor.com for gdb-patches@sourceware.org; Tue, 04 Mar 2014 08:30:20 -0800 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); Tue, 4 Mar 2014 08:30:20 -0800 Received: from localhost.localdomain (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; Tue, 4 Mar 2014 08:30:19 -0800 Message-ID: <5315FF9A.70202@mentor.com> Date: Tue, 04 Mar 2014 16:30:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: gdb-patches ml Subject: [PATCH 4/4] Fix PR breakpoints/16494: add dprintf-style "agent-call"(doc) Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00076.txt.bz2 This patch is for doc. Thanks, Hui 2014-03-04 Hui Zhu PR breakpoint/16494 * gdb.texinfo (Dynamic Printf): Add "agent-call". (qSupported): Add "DprintfAgentCall". --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4803,9 +4803,17 @@ Have the remote debugging agent (such as the output itself. This style is only available for agents that support running commands on the target. +@item agent-call +@kindex dprintf-style agent-call +Have the remote debugging agent (such as @code{gdbserver}) handle +the output itself by calling a function in your program (normally +@code{printf}). This style is only available for agents that +support running commands and dprintf agent call on the target. + @item set dprintf-function @var{function} -Set the function to call if the dprintf style is @code{call}. By -default its value is @code{printf}. You may set it to any expression. +Set the function to call if the dprintf style is @code{call} or +@code{agent-call}. By default its value is @code{printf}. You may +set it to any expression. that @value{GDBN} can evaluate to a function, as per the @code{call} command. @@ -4842,7 +4850,7 @@ the variable settings. @kindex set disconnected-dprintf Choose whether @code{dprintf} commands should continue to run if @value{GDBN} has disconnected from the target. This only applies -if the @code{dprintf-style} is @code{agent}. +if the @code{dprintf-style} is @code{agent} or @code{agent-call}. @item show disconnected-dprintf off @kindex show disconnected-dprintf @@ -35344,6 +35352,11 @@ These are the currently defined stub fea @tab @samp{-} @tab No +@item @samp{DprintfAgentCall} +@tab No +@tab @samp{-} +@tab No + @end multitable These are the currently defined stub features, in more detail: @@ -35511,6 +35524,10 @@ See @ref{Bytecode Descriptions} for deta The remote stub supports running a breakpoint's command list itself, rather than reporting the hit to @value{GDBN}. +@item DprintfAgentCall +@cindex dprintf agent call, in remote protocol +The remote stub supports dprintf agent call. + @item Qbtrace:off The remote stub understands the @samp{Qbtrace:off} packet.