From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69606 invoked by alias); 11 Apr 2015 19:23:32 -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 69562 invoked by uid 89); 11 Apr 2015 19:23:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 11 Apr 2015 19:23:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 8A70F8EFD5; Sat, 11 Apr 2015 19:23:29 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3BJNOtA023246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 11 Apr 2015 15:23:28 -0400 Date: Sat, 11 Apr 2015 19:23:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com Subject: Re: [PATCH v2 9/9] compile: compile printf: gdbserver support Message-ID: <20150411192324.GA27879@host1.jankratochvil.net> References: <20150406172623.31404.58833.stgit@host1.jankratochvil.net> <20150406172735.31404.5975.stgit@host1.jankratochvil.net> <83a8yljgp1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83a8yljgp1.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00422.txt.bz2 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}. Jan