From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1586) id DAEFF3858C83; Wed, 11 Jan 2023 19:48:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAEFF3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673466513; bh=KVwnQ7CFrcVnyw8gaRu51qeEeSoLHin/i52pTHBuWkw=; h=From:To:Subject:Date:From; b=JaIUco/dAP6RkAQUMyCpv7rbdAyDkzLkN0WbIREZQTyqSMt4NmTxSDhDarLlzlWFv NAXjwfik0V1xK/c9V4nX1e8ZFXui0iPbu0KhbzEp58F6zPrzrMdfQB5zMJHnntCFGW isZ89kL9g0yUIc2VC0TUVSRiDq7475mqpohffpvU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Thiago Bauermann To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: Update gdbarch.py with latest changes in gdbarch.c X-Act-Checkin: binutils-gdb X-Git-Author: Thiago Jung Bauermann X-Git-Refname: refs/heads/master X-Git-Oldrev: 2124b2de4bba05063218501dcccfc4cffe648cda X-Git-Newrev: 6be354acf31c8007450114ad5ec64341a4afb608 Message-Id: <20230111194833.DAEFF3858C83@sourceware.org> Date: Wed, 11 Jan 2023 19:48:33 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6be354acf31c= 8007450114ad5ec64341a4afb608 commit 6be354acf31c8007450114ad5ec64341a4afb608 Author: Thiago Jung Bauermann Date: Wed Jan 11 16:27:27 2023 +0000 gdb: Update gdbarch.py with latest changes in gdbarch.c =20 Commit 2b16913cdca2 ("gdb: make gdbarch_alloc take ownership of the tde= p") changed gdbarch.c without updating gdbarch.py. As a result, running gdbarch.py reverts those changes and causes the build to fail. =20 So change gdbarch.py to generate the current version of gdbarch.c. =20 Approved-By: Simon Marchi Diff: --- gdb/gdbarch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py index d2bf86039d1..7dc79386940 100755 --- a/gdb/gdbarch.py +++ b/gdb/gdbarch.py @@ -286,7 +286,7 @@ with open("gdbarch.c", "w") as f: print(f" {c.type} {c.name};", file=3Df) print(file=3Df) print(" /* target specific vector. */", file=3Df) - print(" struct gdbarch_tdep_base *tdep =3D nullptr;", file=3Df) + print(" gdbarch_tdep_up tdep;", file=3Df) print(" gdbarch_dump_tdep_ftype *dump_tdep =3D nullptr;", file=3Df) print(file=3Df) print(" /* per-architecture data-pointers. */", file=3Df) @@ -316,13 +316,13 @@ with open("gdbarch.c", "w") as f: print(file=3Df) print("struct gdbarch *", file=3Df) print("gdbarch_alloc (const struct gdbarch_info *info,", file=3Df) - print(" struct gdbarch_tdep_base *tdep)", file=3Df) + print(" gdbarch_tdep_up tdep)", file=3Df) print("{", file=3Df) print(" struct gdbarch *gdbarch;", file=3Df) print("", file=3Df) print(" gdbarch =3D new struct gdbarch;", file=3Df) print(file=3Df) - print(" gdbarch->tdep =3D tdep;", file=3Df) + print(" gdbarch->tdep =3D std::move (tdep);", file=3Df) print(file=3Df) for c in filter(info, components): print(f" gdbarch->{c.name} =3D info->{c.name};", file=3Df)