Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] More uses of make_unique_xstrdup
@ 2026-01-15 17:33 Tom Tromey
  2026-01-15 17:33 ` [PATCH 1/2] Use make_unique_xstrdup in more places Tom Tromey
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Tom Tromey @ 2026-01-15 17:33 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

This replaces some uses of '.reset(xstrdup())' with
'= make_unique_xstrdup()'.  I think explicit uses of reset
should be avoided when possible.

Regression tested on x86-64 Fedora 41.

Signed-off-by: Tom Tromey <tromey@adacore.com>
---
Tom Tromey (2):
      Use make_unique_xstrdup in more places
      Use make_unique_xstrdup in tracepoint

 gdb/breakpoint.c            |  4 ++--
 gdb/buildsym.h              |  8 +++++---
 gdb/cli/cli-dump.c          |  2 +-
 gdb/mi/mi-cmd-env.c         |  2 +-
 gdb/python/py-framefilter.c |  2 +-
 gdb/python/py-function.c    |  2 +-
 gdb/python/py-lazy-string.c |  5 ++++-
 gdb/python/py-param.c       |  2 +-
 gdb/solib.c                 |  4 ++--
 gdb/source.c                |  4 ++--
 gdb/stack.c                 | 16 +++++++++++-----
 gdb/tracectf.c              |  4 ++--
 gdb/tracepoint.c            | 10 ++++------
 gdb/tracepoint.h            | 12 ++++++------
 14 files changed, 43 insertions(+), 34 deletions(-)
---
base-commit: 44c39324673cd9bb18db67234253f288497d66a1
change-id: 20260115-xstrdup-00eb39b61e16

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


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

end of thread, other threads:[~2026-01-16 14:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15 17:33 [PATCH 0/2] More uses of make_unique_xstrdup Tom Tromey
2026-01-15 17:33 ` [PATCH 1/2] Use make_unique_xstrdup in more places Tom Tromey
2026-01-15 17:33 ` [PATCH 2/2] Use make_unique_xstrdup in tracepoint Tom Tromey
2026-01-15 17:39 ` [PATCH 0/2] More uses of make_unique_xstrdup Guinevere Larsen
2026-01-15 18:01   ` Simon Marchi
2026-01-15 18:16     ` Guinevere Larsen
2026-01-16 14:14 ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox