From: Simon Marchi Date: Tue, 16 Apr 2024 15:52:24 +0000 (-0400) Subject: gdb/make-target-delegates.py: don't handle "void" in parse_argtypes X-Git-Tag: gdb-15-branchpoint~392 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12f5356130c2cda10e2589e74a8716563050dccb;p=thirdparty%2Fbinutils-gdb.git 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 --- 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"):