From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34017 invoked by alias); 6 Apr 2015 17:43:21 -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 34006 invoked by uid 89); 6 Apr 2015 17:43:20 -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: mtaout25.012.net.il Received: from mtaout25.012.net.il (HELO mtaout25.012.net.il) (80.179.55.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Apr 2015 17:43:19 +0000 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NME00300BMUK800@mtaout25.012.net.il> for gdb-patches@sourceware.org; Mon, 06 Apr 2015 20:38:38 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NME00M7KBOEGU50@mtaout25.012.net.il>; Mon, 06 Apr 2015 20:38:38 +0300 (IDT) Date: Mon, 06 Apr 2015 17:43:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v2 9/9] compile: compile printf: gdbserver support In-reply-to: <20150406172735.31404.5975.stgit@host1.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com Reply-to: Eli Zaretskii Message-id: <83a8yljgp1.fsf@gnu.org> References: <20150406172623.31404.58833.stgit@host1.jankratochvil.net> <20150406172735.31404.5975.stgit@host1.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00170.txt.bz2 > From: Jan Kratochvil > Cc: Phil Muldoon > Date: Mon, 06 Apr 2015 19:27:35 +0200 > > --- 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?