[pushed,gdb/python] Run black on gdb/gdbarch_components.py

Message ID 20250116083208.9347-1-tdevries@suse.de
State Committed
Headers
Series [pushed,gdb/python] Run black on gdb/gdbarch_components.py |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom de Vries Jan. 16, 2025, 8:32 a.m. UTC
  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 | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


base-commit: 823b5bbe05471c4222e98355b01802b490db0a0e
  

Patch

diff --git a/gdb/gdbarch_components.py b/gdb/gdbarch_components.py
index 2d528de2c56..e0fd74e80d1 100644
--- a/gdb/gdbarch_components.py
+++ b/gdb/gdbarch_components.py
@@ -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,
 )