From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 9A4E13858431; Tue, 16 Apr 2024 16:16:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A4E13858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713284163; bh=5VdpzxBi+yU0VKK7WQLl/nunqS7Chn24GHetz0Nrjkw=; h=From:To:Subject:Date:From; b=DbmWKtiPZT1SC1MRW5arIenrhSohjroTGOHSHTdKI8q5oExiezorALfsQ4WClYqcf 0d6gK6t3UjY6IHhtZ/DVn2C0ecBThq3lLniXaAQLGcF1FsOEMJ78wsNXJ4F25e2Mzz f/0m5kWhthZe79+gVpAt7gGlgwhnvpiqJ8vwBhs8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 6a2dbb742dc5aa18bc7995f7af55fb6e74c3ae4a X-Git-Newrev: 12f5356130c2cda10e2589e74a8716563050dccb Message-Id: <20240416161603.9A4E13858431@sourceware.org> Date: Tue, 16 Apr 2024 16:16:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D12f5356130c2= cda10e2589e74a8716563050dccb commit 12f5356130c2cda10e2589e74a8716563050dccb Author: Simon Marchi Date: Tue Apr 16 11:52:24 2024 -0400 gdb/make-target-delegates.py: don't handle "void" in parse_argtypes =20 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. =20 Change-Id: I0a2b398408aa129634e2d73097a038f7f80db4b4 Approved-By: John Baldwin 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 =3D re.sub(r"^\((.*)\)$", r"\1", typestr) result: list[str] =3D [] for item in re.split(r",\s*", typestr): - if item =3D=3D "void" or item =3D=3D "": + if item =3D=3D "": continue + m =3D ARGTYPES.match(item) if m: if m.group("E"):