public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Remove some uses of xrealloc
@ 2023-06-19 17:51 Tom Tromey
  2023-06-19 17:51 ` [PATCH 1/3] Use std::string in linux-osdata.c Tom Tromey
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tom Tromey @ 2023-06-19 17:51 UTC (permalink / raw)
  To: gdb-patches

This short series removes a few uses of xrealloc and associated manual
memory management.  This simplifies the code a bit.

Regression tested on x86-64 Fedora 36.

---
Tom Tromey (3):
      Use std::string in linux-osdata.c
      Use byte_vector in remote.c:readahead_cache
      Use std::string in do_set_command

 gdb/cli/cli-setshow.c  | 22 +++++++---------------
 gdb/nat/linux-osdata.c | 51 +++++++++++++++-----------------------------------
 gdb/remote.c           | 19 ++++++++-----------
 3 files changed, 30 insertions(+), 62 deletions(-)
---
base-commit: e11a2ebb8e44b75fad8c520a170dcce6254c5164
change-id: 20230619-remove-some-realloc-e97aad8f6481

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


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

end of thread, other threads:[~2023-06-19 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 17:51 [PATCH 0/3] Remove some uses of xrealloc Tom Tromey
2023-06-19 17:51 ` [PATCH 1/3] Use std::string in linux-osdata.c Tom Tromey
2023-06-19 17:51 ` [PATCH 2/3] Use byte_vector in remote.c:readahead_cache Tom Tromey
2023-06-19 17:51 ` [PATCH 3/3] Use std::string in do_set_command Tom Tromey
2023-06-19 18:27 ` [PATCH 0/3] Remove some uses of xrealloc 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).