public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/3] Remove some uses of xrealloc
Date: Mon, 19 Jun 2023 11:51:21 -0600	[thread overview]
Message-ID: <20230619-remove-some-realloc-v1-0-8bee74d5b934@tromey.com> (raw)

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>


             reply	other threads:[~2023-06-19 17:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 17:51 Tom Tromey [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230619-remove-some-realloc-v1-0-8bee74d5b934@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).