From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [PATCH 0/3] Remove some uses of alloca from cli/
Date: Thu, 22 Jan 2026 13:49:10 -0700 [thread overview]
Message-ID: <20260122-command-no-alloca-v1-0-402aa429bbbf@adacore.com> (raw)
I found some spots in the CLI code that needlessly use alloca. This
patch fixes these.
Regression tested on x86-64 Fedora 41.
Signed-off-by: Tom Tromey <tromey@adacore.com>
---
Tom Tromey (3):
Use string_view in cli-decode.c:find_cmd
Don't make copies when calling find_cmd
Remove alloca from lookup_cmd
gdb/cli/cli-decode.c | 50 +++++++++++++++-----------------------------------
1 file changed, 15 insertions(+), 35 deletions(-)
---
base-commit: 44ae137c1fcefe486639b7eab3f6a7f60e4659e5
change-id: 20260122-command-no-alloca-f2410f3d5058
Best regards,
--
Tom Tromey <tromey@adacore.com>
next reply other threads:[~2026-01-22 20:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 20:49 Tom Tromey [this message]
2026-01-22 20:49 ` [PATCH 1/3] Use string_view in cli-decode.c:find_cmd Tom Tromey
2026-01-22 20:49 ` [PATCH 2/3] Don't make copies when calling find_cmd Tom Tromey
2026-01-22 20:49 ` [PATCH 3/3] Remove alloca from lookup_cmd Tom Tromey
2026-01-29 19:07 ` [PATCH 0/3] Remove some uses of alloca from cli/ Kevin Buettner
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=20260122-command-no-alloca-v1-0-402aa429bbbf@adacore.com \
--to=tromey@adacore.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