aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbarch.py')
-rwxr-xr-xgdb/gdbarch.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py
index a4c1818..6980421 100755
--- a/gdb/gdbarch.py
+++ b/gdb/gdbarch.py
@@ -396,23 +396,21 @@ with open("gdbarch.c", "w") as f:
print(" gdb_nm_file = GDB_NM_FILE;", file=f)
print("#endif", file=f)
print(" gdb_printf (file,", file=f)
- print(""" "gdbarch_dump: GDB_NM_FILE = %s\\n",""", file=f)
- print(" gdb_nm_file);", file=f)
+ print(""" "gdbarch_dump: GDB_NM_FILE = %s\\n",""", file=f)
+ print(" gdb_nm_file);", file=f)
for c in components:
if c.predicate:
print(" gdb_printf (file,", file=f)
print(
- f""" "gdbarch_dump: gdbarch_{c.name}_p() = %d\\n",""",
+ f""" "gdbarch_dump: gdbarch_{c.name}_p() = %d\\n",""",
file=f,
)
- print(f" gdbarch_{c.name}_p (gdbarch));", file=f)
+ print(f" gdbarch_{c.name}_p (gdbarch));", file=f)
if isinstance(c, Function):
print(" gdb_printf (file,", file=f)
+ print(f""" "gdbarch_dump: {c.name} = <%s>\\n",""", file=f)
print(
- f""" "gdbarch_dump: {c.name} = <%s>\\n",""", file=f
- )
- print(
- f" host_address_to_string (gdbarch->{c.name}));",
+ f" host_address_to_string (gdbarch->{c.name}));",
file=f,
)
else:
@@ -423,10 +421,8 @@ with open("gdbarch.c", "w") as f:
else:
printer = f"plongest (gdbarch->{c.name})"
print(" gdb_printf (file,", file=f)
- print(
- f""" "gdbarch_dump: {c.name} = %s\\n",""", file=f
- )
- print(f" {printer});", file=f)
+ print(f""" "gdbarch_dump: {c.name} = %s\\n",""", file=f)
+ print(f" {printer});", file=f)
print(" if (gdbarch->dump_tdep != NULL)", file=f)
print(" gdbarch->dump_tdep (gdbarch, file);", file=f)
print("}", file=f)