This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 6/7] common: add an alternative implementation for xstrvprintf
- From: Tom Tromey <tromey at redhat dot com>
- To: Mircea Gherzan <mircea dot gherzan at intel dot com>
- Cc: palves at redhat dot com, jan dot kratochvil at redhat dot com, gdb-patches at sourceware dot org
- Date: Mon, 29 Jul 2013 13:16:04 -0600
- Subject: Re: [PATCH 6/7] common: add an alternative implementation for xstrvprintf
- References: <1372322622-3216-1-git-send-email-mircea dot gherzan at intel dot com> <1372322622-3216-7-git-send-email-mircea dot gherzan at intel dot com>
>>>>> "Mircea" == Mircea Gherzan <mircea.gherzan@intel.com> writes:
Mircea> The vasprintf(), used by the current implementation, is a GNU extension.
Mircea> 2013-06-25 Mircea Gherzan <mircea.gherzan@intel.com>
Mircea> * configure.ac (AC_CHECK_FUNCS): Add vasprintf.
Mircea> * config.in: Rebuild.
Mircea> * configure: Rebuild.
Mircea> * common/common-utils.c (xstrvprintf): Add an alternative
Mircea> implementation that uses vsnprintf.
I suppose this is a problem for gdbserver, but not gdb? Since I would
assume that the latter pulls in the libiberty vasprintf instead.
If it is a problem for gdb, then I think more investigation is needed.
Either way the gdbserver configury needs an update.
I really should resurrect common.m4 ...
Tom