This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Introduce string_printf
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 08 Nov 2016 13:53:38 -0500
- Subject: [binutils-gdb] Introduce string_printf
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT d4081a383e28db26c65298f7405554d4312b1342 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: d4081a383e28db26c65298f7405554d4312b1342
Introduce string_printf
This introduces the string_printf function. Like asprintf, but
returns a std::string.
gdb/ChangeLog:
2016-11-08 Pedro Alves <palves@redhat.com>
* Makefile.in (COMMON_OBS): Add utils-selftests.o.
* common/common-utils.c (string_printf): New function.
* common/common-utils.h: Include <string>.
(string_printf): Declare.
* utils-selftests.c: New file.