gdb: have mi_out_new return std::unique_ptr
authorAndrew Burgess <aburgess@redhat.com>
Fri, 11 Aug 2023 10:39:43 +0000 (11:39 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 23 Aug 2023 08:50:31 +0000 (09:50 +0100)
commite200b179ce7d2b03e903a2da1e8d1a6739cdca1c
treed2d7b7d423dc8442923e5b9e74b15b146ccb158a
parent0b72cde372f4ac58d3027e94ac48672a5698d80a
gdb: have mi_out_new return std::unique_ptr

Have the mi_out_new function return a std::unique_ptr instead of a raw
pointer.  Update the two uses of mi_out_new.

There should be no user visible changes after this commit.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/mi/mi-interp.c
gdb/mi/mi-main.c
gdb/mi/mi-out.c
gdb/mi/mi-out.h