public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes
@ 2024-04-16 16:16 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2024-04-16 16:16 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=12f5356130c2cda10e2589e74a8716563050dccb
commit 12f5356130c2cda10e2589e74a8716563050dccb
Author: Simon Marchi <simon.marchi@efficios.com>
Date: Tue Apr 16 11:52:24 2024 -0400
gdb/make-target-delegates.py: don't handle "void" in parse_argtypes
I suppose this was needed when we had `void` in declarations of methods
with no parameters. If so, we no longer need it. There are no changes
in the generated file.
Change-Id: I0a2b398408aa129634e2d73097a038f7f80db4b4
Approved-By: John Baldwin <jhb@FreeBSD.org>
Diff:
---
gdb/make-target-delegates.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py
index 4d18d2802ce..1893fc63ca8 100755
--- a/gdb/make-target-delegates.py
+++ b/gdb/make-target-delegates.py
@@ -149,8 +149,9 @@ def parse_argtypes(typestr: str):
typestr = re.sub(r"^\((.*)\)$", r"\1", typestr)
result: list[str] = []
for item in re.split(r",\s*", typestr):
- if item == "void" or item == "":
+ if item == "":
continue
+
m = ARGTYPES.match(item)
if m:
if m.group("E"):
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-16 16:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 16:16 [binutils-gdb] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes Simon Marchi
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).