public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] string type overloads for some path manipulation functions
@ 2024-06-20 13:33 Andrew Burgess
  2024-06-20 13:33 ` [PATCH 1/2] gdb: add overloads of gdb_abspath Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Burgess @ 2024-06-20 13:33 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

Two small refactoring patches that add string type overloads for some
path manipulation functions.

These mean we (developers) don't need to care what string type
gdb_abspath or gdb_tilde_expand take, you can now pass them 'const
char *', 'std::string', or 'gdb::unique_xmalloc_ptr<char>' and it'll
"Just Work".

--

Andrew Burgess (2):
  gdb: add overloads of gdb_abspath
  gdb: add overloads of gdb_tilde_expand

 gdb/bsd-kvm.c                 |  2 +-
 gdb/completer.c               |  2 +-
 gdb/corelow.c                 |  2 +-
 gdb/dwarf2/index-cache.c      |  2 +-
 gdb/main.c                    |  2 +-
 gdb/nat/fork-inferior.c       |  2 +-
 gdb/top.c                     |  2 +-
 gdb/tracefile-tfile.c         |  2 +-
 gdbserver/server.cc           |  2 +-
 gdbserver/win32-low.cc        |  2 +-
 gdbsupport/gdb_tilde_expand.h | 18 ++++++++++++++++--
 gdbsupport/pathstuff.h        | 16 ++++++++++++++++
 12 files changed, 42 insertions(+), 12 deletions(-)


base-commit: a8651ef51822f91ec86d0d5caffbf2e50b174c23
-- 
2.25.4


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

end of thread, other threads:[~2024-06-27 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-20 13:33 [PATCH 0/2] string type overloads for some path manipulation functions Andrew Burgess
2024-06-20 13:33 ` [PATCH 1/2] gdb: add overloads of gdb_abspath Andrew Burgess
2024-06-20 13:33 ` [PATCH 2/2] gdb: add overloads of gdb_tilde_expand Andrew Burgess
2024-06-24 15:50 ` [PATCH 0/2] string type overloads for some path manipulation functions Tom Tromey
2024-06-27 14:22   ` 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).