aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-01-11 16:27:27 +0000
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-01-11 19:41:50 +0000
commit6be354acf31c8007450114ad5ec64341a4afb608 (patch)
treeca6673c900b7a72ff87b5782d362d1477a657460 /gdb
parent2124b2de4bba05063218501dcccfc4cffe648cda (diff)
downloadbinutils-6be354acf31c8007450114ad5ec64341a4afb608.zip
binutils-6be354acf31c8007450114ad5ec64341a4afb608.tar.gz
binutils-6be354acf31c8007450114ad5ec64341a4afb608.tar.bz2
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>
Diffstat (limited to 'gdb')
-rwxr-xr-xgdb/gdbarch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py
index d2bf860..7dc7938 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)