public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Thiago Bauermann <bauermann@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: Update gdbarch.py with latest changes in gdbarch.c Date: Wed, 11 Jan 2023 19:48:33 +0000 (GMT) [thread overview] Message-ID: <20230111194833.DAEFF3858C83@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6be354acf31c8007450114ad5ec64341a4afb608 commit 6be354acf31c8007450114ad5ec64341a4afb608 Author: Thiago Jung Bauermann <thiago.bauermann@linaro.org> Date: Wed Jan 11 16:27:27 2023 +0000 gdb: Update gdbarch.py with latest changes in gdbarch.c Commit 2b16913cdca2 ("gdb: make gdbarch_alloc take ownership of the tdep") changed gdbarch.c without updating gdbarch.py. As a result, running gdbarch.py reverts those changes and causes the build to fail. So change gdbarch.py to generate the current version of gdbarch.c. Approved-By: Simon Marchi <simon.marchi@efficios.com> 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=f) print(file=f) print(" /* target specific vector. */", file=f) - print(" struct gdbarch_tdep_base *tdep = nullptr;", file=f) + print(" gdbarch_tdep_up tdep;", file=f) print(" gdbarch_dump_tdep_ftype *dump_tdep = nullptr;", file=f) print(file=f) print(" /* per-architecture data-pointers. */", file=f) @@ -316,13 +316,13 @@ with open("gdbarch.c", "w") as f: print(file=f) print("struct gdbarch *", file=f) print("gdbarch_alloc (const struct gdbarch_info *info,", file=f) - print(" struct gdbarch_tdep_base *tdep)", file=f) + print(" gdbarch_tdep_up tdep)", file=f) print("{", file=f) print(" struct gdbarch *gdbarch;", file=f) print("", file=f) print(" gdbarch = new struct gdbarch;", file=f) print(file=f) - print(" gdbarch->tdep = tdep;", file=f) + print(" gdbarch->tdep = std::move (tdep);", file=f) print(file=f) for c in filter(info, components): print(f" gdbarch->{c.name} = info->{c.name};", file=f)
reply other threads:[~2023-01-11 19:48 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230111194833.DAEFF3858C83@sourceware.org \ --to=bauermann@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).