]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/python] Run black on gdb/gdbarch_components.py
authorTom de Vries <tdevries@suse.de>
Thu, 16 Jan 2025 08:30:58 +0000 (09:30 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 16 Jan 2025 08:30:58 +0000 (09:30 +0100)
The sourceware buildbot reported "python black formatter ( failure )" at
commit b034bb38772 ("[gdb] Add gdbarch_dwarf2_reg_piece_offset hook").

Fix this by running the precommit hooks in a container with Python 3.11 using:
...
$ pre-commit run --files gdb*/*
...

gdb/gdbarch_components.py

index 2d528de2c56484f91d3bdcd1a9c5f827e429711d..e0fd74e80d145852b43c261548a58a2a1c15e188 100644 (file)
@@ -837,10 +837,7 @@ register as defined by the ABI.
 """,
     type="ULONGEST",
     name="dwarf2_reg_piece_offset",
-    params=[
-        ("int", "regnum"),
-        ("ULONGEST", "size")
-    ],
+    params=[("int", "regnum"), ("ULONGEST", "size")],
     predefault="default_dwarf2_reg_piece_offset",
     invalid=False,
 )