]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/make-target-delegates.py: don't handle "void" in parse_argtypes
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 16 Apr 2024 15:52:24 +0000 (11:52 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 16 Apr 2024 16:15:39 +0000 (12:15 -0400)
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>
gdb/make-target-delegates.py

index 4d18d2802ced1974605c26d3055c965ccf51e550..1893fc63ca846a463a954846ece7e35c25a18b9e 100755 (executable)
@@ -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"):