From: Tom de Vries Date: Thu, 16 Jan 2025 08:30:58 +0000 (+0100) Subject: [gdb/python] Run black on gdb/gdbarch_components.py X-Git-Tag: binutils-2_44~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3735a6e3dc20b4902a79290c2885ae362b591cf;p=thirdparty%2Fbinutils-gdb.git [gdb/python] Run black on gdb/gdbarch_components.py 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*/* ... --- 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, )