diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-04-16 11:52:24 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-04-16 12:15:39 -0400 |
commit | 12f5356130c2cda10e2589e74a8716563050dccb (patch) | |
tree | 957b7041b69e02e4fd8ef5da700b58a9f3c6eed5 /gdb | |
parent | 6a2dbb742dc5aa18bc7995f7af55fb6e74c3ae4a (diff) | |
download | gdb-12f5356130c2cda10e2589e74a8716563050dccb.zip gdb-12f5356130c2cda10e2589e74a8716563050dccb.tar.gz gdb-12f5356130c2cda10e2589e74a8716563050dccb.tar.bz2 |
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>
Diffstat (limited to 'gdb')
-rwxr-xr-x | gdb/make-target-delegates.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py index 4d18d28..1893fc6 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"): |