From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tom@tromey.com>
Subject: [PATCH] Rename gdbpy_new_list
Date: Sat, 12 Sep 2026 08:31:44 -0600 [thread overview]
Message-ID: <20260912143144.3724419-1-tom@tromey.com> (raw)
gdbpy_new_list did not follow the naming convention documented at the
top of py-wrappers.h. This patch corrects the error.
---
gdb/python/py-symbol.c | 2 +-
gdb/python/py-wrappers.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c
index 39970c6dcdf..3be1d933493 100644
--- a/gdb/python/py-symbol.c
+++ b/gdb/python/py-symbol.c
@@ -489,7 +489,7 @@ gdbpy_lookup_static_symbols (gdbpy_borrowed_ref<> args,
gdbpy_arg_parse_tuple_and_keywords (args, kw, "s|i", keywords, &name,
&domain);
- gdbpy_ref<> return_list = gdbpy_new_list (0);
+ gdbpy_ref<> return_list = gdbpy_list_new (0);
domain_search_flags flags = from_scripting_domain (domain);
diff --git a/gdb/python/py-wrappers.h b/gdb/python/py-wrappers.h
index 6c2b5e4d41e..47be160ed04 100644
--- a/gdb/python/py-wrappers.h
+++ b/gdb/python/py-wrappers.h
@@ -127,7 +127,7 @@ gdbpy_bytes_size (gdbpy_borrowed_ref<> ref)
/* Wrapper for PyList_New. */
static inline gdbpy_ref<>
-gdbpy_new_list (Py_ssize_t len)
+gdbpy_list_new (Py_ssize_t len)
{
gdbpy_ref<> result (PyList_New (len));
if (result == nullptr)
--
2.49.0
next reply other threads:[~2026-09-12 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 14:31 Tom Tromey [this message]
2026-09-14 13:26 ` Simon Marchi
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=20260912143144.3724419-1-tom@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