From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78572 invoked by alias); 11 Apr 2015 19:31:10 -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 78558 invoked by uid 89); 11 Apr 2015 19:31:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout24.012.net.il Received: from mtaout24.012.net.il (HELO mtaout24.012.net.il) (80.179.55.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 11 Apr 2015 19:31:08 +0000 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NMN00K00PKJUQ00@mtaout24.012.net.il> for gdb-patches@sourceware.org; Sat, 11 Apr 2015 22:22:30 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN00IJQPTH0B30@mtaout24.012.net.il>; Sat, 11 Apr 2015 22:22:30 +0300 (IDT) Date: Sat, 11 Apr 2015 19:31:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v2 9/9] compile: compile printf: gdbserver support In-reply-to: <20150411192324.GA27879@host1.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com Reply-to: Eli Zaretskii Message-id: <83iod2ea2r.fsf@gnu.org> References: <20150406172623.31404.58833.stgit@host1.jankratochvil.net> <20150406172735.31404.5975.stgit@host1.jankratochvil.net> <83a8yljgp1.fsf@gnu.org> <20150411192324.GA27879@host1.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00423.txt.bz2 > Date: Sat, 11 Apr 2015 21:23:24 +0200 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com > > On Mon, 06 Apr 2015 19:43:22 +0200, Eli Zaretskii wrote: > > > --- a/gdb/doc/gdb.texinfo > > > +++ b/gdb/doc/gdb.texinfo > > > @@ -17246,7 +17246,9 @@ multiple-line editor. > > > @item compile printf @var{template}, @var{expressions}@dots{} > > > Compile and execute @code{printf} function call with the compiler > > > language found as the current language in @value{GDBN} > > > -(@pxref{Languages}). > > > +(@pxref{Languages}). Inferior executes @code{open_memstream} and > > > +@code{fprintf} instead so that the produced string is printed by > > > +@value{GDBN} and not the inferior. > > > > Is this really important to say in the manual? > > > > And if it is, why not simply say that the value is printed by GDB > > itself, not by calling functions in the inferior? > > Used: > The value is printed by @value{GDBN} and not the inferior, inferior > does not execute specifically the function @code{printf}. Fine with me, thanks.