public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Use unique_xmalloc_ptr in location.[ch]
@ 2023-12-10 15:20 Tom Tromey
  2023-12-10 15:20 ` [PATCH 1/2] Use unique_xmalloc_ptr in linespec_location_spec Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Tromey @ 2023-12-10 15:20 UTC (permalink / raw)
  To: gdb-patches

This short series changes location.[ch] to use unique_xmalloc_ptr,
removing some manual memory management.

---
Tom Tromey (2):
      Use unique_xmalloc_ptr in linespec_location_spec
      Use unique_xmalloc_ptr in explicit_location_spec

 gdb/breakpoint.c           | 14 ++++-----
 gdb/completer.c            | 14 +++++----
 gdb/linespec.c             | 76 +++++++++++++++++++++++++---------------------
 gdb/location.c             | 43 ++++++++++----------------
 gdb/location.h             | 28 ++++++++---------
 gdb/mi/mi-cmd-break.c      |  6 ++--
 gdb/python/py-breakpoint.c | 12 ++++----
 7 files changed, 95 insertions(+), 98 deletions(-)
---
base-commit: eef4ff9b707d738322a5dca82a6a9b0aad76a26e
change-id: 20231210-location-stuff-31339a1c6b45

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


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10 15:20 [PATCH 0/2] Use unique_xmalloc_ptr in location.[ch] Tom Tromey
2023-12-10 15:20 ` [PATCH 1/2] Use unique_xmalloc_ptr in linespec_location_spec Tom Tromey
2023-12-10 15:20 ` [PATCH 2/2] Use unique_xmalloc_ptr in explicit_location_spec Tom Tromey
2023-12-12 23:52 ` [PATCH 0/2] Use unique_xmalloc_ptr in location.[ch] John Baldwin

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).