gdb/gdbsupport: make xstrprintf and xstrvprintf return a unique_ptr
authorAndrew Burgess <aburgess@redhat.com>
Mon, 8 Nov 2021 14:58:46 +0000 (14:58 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 16 Nov 2021 17:45:45 +0000 (17:45 +0000)
commit8579fd136a614985bd27f20539c7bb7c5a51287d
treefb84850409a44e13e832cbadc9025d40c1d33d9f
parent2bb7589ddf61e163f2e414e7033fad56ea17e784
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.
34 files changed:
gdb/ada-lang.c
gdb/auto-load.c
gdb/breakpoint.c
gdb/charset.c
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-utils.c
gdb/cp-abi.c
gdb/frv-tdep.c
gdb/gcore.c
gdb/guile/scm-breakpoint.c
gdb/guile/scm-cmd.c
gdb/guile/scm-exception.c
gdb/guile/scm-gsmob.c
gdb/guile/scm-ports.c
gdb/jit.c
gdb/language.c
gdb/linespec.c
gdb/location.c
gdb/macrotab.c
gdb/main.c
gdb/mi/mi-cmd-env.c
gdb/python/py-breakpoint.c
gdb/remote.c
gdb/riscv-tdep.c
gdb/rust-lang.h
gdb/skip.c
gdb/target.c
gdb/tracepoint.c
gdb/tui/tui-layout.c
gdb/utils.c
gdb/xtensa-tdep.c
gdbsupport/common-utils.cc
gdbsupport/common-utils.h