From 8579fd136a614985bd27f20539c7bb7c5a51287d Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 8 Nov 2021 14:58:46 +0000 Subject: gdb/gdbsupport: make xstrprintf and xstrvprintf return a unique_ptr The motivation is to reduce the number of places where unmanaged pointers are returned from allocation type routines. All of the callers are updated. There should be no user visible changes after this commit. --- gdb/cli/cli-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/cli/cli-utils.c') diff --git a/gdb/cli/cli-utils.c b/gdb/cli/cli-utils.c index 3ee6ca6..8fc7557 100644 --- a/gdb/cli/cli-utils.c +++ b/gdb/cli/cli-utils.c @@ -209,7 +209,7 @@ The flag -q disables the production of these headers and messages.%s"), prefix, entity_kind, entity_kind, entity_kind, (document_n_flag ? _("\n\ By default, the command will include non-debug symbols in the output;\n\ -these can be excluded using the -n flag.") : "")); +these can be excluded using the -n flag.") : "")).release (); } /* See documentation in cli-utils.h. */ -- cgit v1.1