diff options
author | Pedro Alves <palves@redhat.com> | 2016-11-08 15:26:42 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-11-08 15:26:42 +0000 |
commit | d4081a383e28db26c65298f7405554d4312b1342 (patch) | |
tree | 6a44bd0e08354fd50608dfe5240d28ec7e567e55 /gdb/Makefile.in | |
parent | cb64e50d42a49bce61050c79c5ab0846905b6a82 (diff) | |
download | gdb-d4081a383e28db26c65298f7405554d4312b1342.zip gdb-d4081a383e28db26c65298f7405554d4312b1342.tar.gz gdb-d4081a383e28db26c65298f7405554d4312b1342.tar.bz2 |
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.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 6db63c7..3876cd9 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1066,7 +1066,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o \ ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o \ m2-valprint.o \ - ser-event.o serial.o mdebugread.o top.o utils.o \ + ser-event.o serial.o mdebugread.o top.o utils.o utils-selftests.o \ ui-file.o \ user-regs.o \ frame.o frame-unwind.o doublest.o \ |