@@ -91,5 +91,6 @@ with open("ada-casefold.h", "w") as f:
gdbcopyright.copyright("ada-unicode.py", "UTF-32 case-folding for GDB"),
file=f,
)
+ print("", file=f)
for r in all_ranges:
print(f" {{{r[0]}, {r[1]}, {r[2]}, {r[3]}}},", file=f)
@@ -52,6 +52,7 @@ with open("gdbarch-gen.h", "w") as f:
print(copyright, file=f)
print(file=f)
print(file=f)
+ print(file=f)
print("/* The following are pre-initialized by GDBARCH. */", file=f)
# Do Info components first.
@@ -121,6 +122,7 @@ with open("gdbarch-gen.h", "w") as f:
with open("gdbarch.c", "w") as f:
print(copyright, file=f)
print(file=f)
+ print(file=f)
print("/* Maintain the struct gdbarch object. */", file=f)
print(file=f)
#
@@ -49,5 +49,4 @@ def copyright(tool: str, description: str):
/* To regenerate this file, run:
./{tool}
-*/
-"""
+*/"""
@@ -199,6 +199,7 @@ def write_declaration(f: TextIO, name: str, return_type: str, argtypes: List[str
# Write out a delegation function.
def write_delegator(f: TextIO, name: str, return_type: str, argtypes: List[str]):
+ print("", file=f)
names = write_function_header(
f, False, "target_ops::" + name, return_type, argtypes
)
@@ -208,7 +209,7 @@ def write_delegator(f: TextIO, name: str, return_type: str, argtypes: List[str])
print("this->beneath ()->" + name + " (", file=f, end="")
print(", ".join(names), file=f, end="")
print(");", file=f)
- print("}\n", file=f)
+ print("}", file=f)
# Write out a default function.
@@ -220,6 +221,7 @@ def write_tdefault(
return_type: str,
argtypes: List[str],
):
+ print("", file=f)
name = "dummy_target::" + name
names = write_function_header(f, False, name, return_type, argtypes)
if style == "FUNC":
@@ -238,7 +240,7 @@ def write_tdefault(
pass
else:
raise RuntimeError("unrecognized style: " + style)
- print("}\n", file=f)
+ print("}", file=f)
def munge_type(typename: str):
@@ -263,6 +265,7 @@ def munge_type(typename: str):
def write_debugmethod(
f: TextIO, content: str, name: str, return_type: str, argtypes: List[str]
):
+ print("", file=f)
debugname = "debug_target::" + name
names = write_function_header(f, False, debugname, return_type, argtypes)
if return_type != "void":
@@ -305,7 +308,7 @@ def write_debugmethod(
if return_type != "void":
print(" return result;", file=f)
- print("}\n", file=f)
+ print("}", file=f)
def print_class(
@@ -314,6 +317,7 @@ def print_class(
delegators: List[str],
entries: Dict[str, Entry],
):
+ print("", file=f)
print("struct " + class_name + " : public target_ops", file=f)
print("{", file=f)
print(" const target_info &info () const override;", file=f)
@@ -326,7 +330,7 @@ def print_class(
entry = entries[name]
write_declaration(f, name, entry.return_type, entry.argtypes)
- print("};\n", file=f)
+ print("};", file=f)
delegators: List[str] = []
@@ -4535,4 +4535,3 @@ debug_target::store_memtags (CORE_ADDR arg0, size_t arg1, const gdb::byte_vector
gdb_puts ("\n", gdb_stdlog);
return result;
}
-