This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 9/9] compile: compile printf: gdbserver support
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org, pmuldoon at redhat dot com
- Date: Mon, 06 Apr 2015 20:43:22 +0300
- Subject: Re: [PATCH v2 9/9] compile: compile printf: gdbserver support
- Authentication-results: sourceware.org; auth=none
- References: <20150406172623 dot 31404 dot 58833 dot stgit at host1 dot jankratochvil dot net> <20150406172735 dot 31404 dot 5975 dot stgit at host1 dot jankratochvil dot net>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Phil Muldoon <pmuldoon@redhat.com>
> 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?