Introduce string_printf
authorPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:42 +0000 (15:26 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:42 +0000 (15:26 +0000)
commitd4081a383e28db26c65298f7405554d4312b1342
tree6a44bd0e08354fd50608dfe5240d28ec7e567e55
parentcb64e50d42a49bce61050c79c5ab0846905b6a82
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.
gdb/ChangeLog
gdb/Makefile.in
gdb/common/common-utils.c
gdb/common/common-utils.h
gdb/utils-selftests.c [new file with mode: 0644]
This page took 0.042856 seconds and 4 git commands to generate.