public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] New gdb::make_unique and more std::unique_ptr use
@ 2023-08-14 13:42 Andrew Burgess
  2023-08-14 13:42 ` [PATCH 1/3] gdb: add gdb::make_unique function Andrew Burgess
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Andrew Burgess @ 2023-08-14 13:42 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey, Andrew Burgess

This started while working on another series, in order to avoid
calling 'new' directly, I really wanted a std::make_unique function --
but that's C++14, so not available for GDB right now.

So I added a gdb::make_unique, which should be equivalent to the C++14
function.

The last two commits are additional make_unique/unique_ptr changes,
but target specific areas that needed slightly more refactoring.

---

Andrew Burgess (3):
  gdb: add gdb::make_unique function
  gdb: have mi_out_new return std::unique_ptr
  gdb: remove mi_parse::make functions

 gdb/addrmap.c                          |  2 +-
 gdb/break-catch-load.c                 |  5 +-
 gdb/compile/compile-c-support.c        |  2 +-
 gdb/cp-name-parser.y                   |  2 +-
 gdb/cp-support.c                       |  2 +-
 gdb/dwarf2/frame.c                     |  2 +-
 gdb/dwarf2/read-debug-names.c          |  2 +-
 gdb/dwarf2/read-gdb-index.c            |  2 +-
 gdb/dwarf2/read.c                      |  2 +-
 gdb/gdbtypes.c                         |  2 +-
 gdb/mi/mi-interp.c                     |  2 +-
 gdb/mi/mi-main.c                       |  4 +-
 gdb/mi/mi-out.c                        |  8 +--
 gdb/mi/mi-out.h                        |  2 +-
 gdb/mi/mi-parse.c                      | 76 ++++++++++++--------------
 gdb/mi/mi-parse.h                      | 18 ++----
 gdb/python/py-mi.c                     |  4 +-
 gdb/python/py-varobj.c                 |  4 +-
 gdb/ui-out.c                           |  8 +--
 gdb/unittests/parallel-for-selftests.c |  4 +-
 gdb/varobj.c                           |  2 +-
 gdbsupport/gdb_unique_ptr.h            |  9 +++
 22 files changed, 78 insertions(+), 86 deletions(-)


base-commit: 86dfe011797b3e442622d427e9abd1e0f70f3a62
-- 
2.25.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-23  8:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14 13:42 [PATCH 0/3] New gdb::make_unique and more std::unique_ptr use Andrew Burgess
2023-08-14 13:42 ` [PATCH 1/3] gdb: add gdb::make_unique function Andrew Burgess
2023-08-14 15:38   ` Tom Tromey
2023-08-17 10:26     ` Andrew Burgess
2023-08-17 18:07       ` Tom Tromey
2023-08-21 10:02         ` Andrew Burgess
2023-08-14 13:42 ` [PATCH 2/3] gdb: have mi_out_new return std::unique_ptr Andrew Burgess
2023-08-14 13:42 ` [PATCH 3/3] gdb: remove mi_parse::make functions Andrew Burgess
2023-08-22 15:33 ` [PATCH 0/3] New gdb::make_unique and more std::unique_ptr use Tom Tromey
2023-08-23  8:52   ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).