aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-04-03 12:01:48 -0600
committerTom Tromey <tom@tromey.com>2025-04-03 21:04:20 -0600
commitba310c98c8f21a6281b8b01c18ca015d3799532e (patch)
tree28067ecc1b9abde1d27046882ffefc0d936630ed
parentb135c926c56da63611000c3d0c0c8e2cfc97d314 (diff)
downloadbinutils-ba310c98c8f21a6281b8b01c18ca015d3799532e.zip
binutils-ba310c98c8f21a6281b8b01c18ca015d3799532e.tar.gz
binutils-ba310c98c8f21a6281b8b01c18ca015d3799532e.tar.bz2
Make gdb/python codespell-clean
This cleans up the last codespell report in the Python directory and adds gdb/python to pre-commit. Approved-By: Tom de Vries <tdevries@suse.de>
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--gdb/python/lib/gdb/dap/scopes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2a7aaa7..27eaea0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -69,7 +69,7 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
- files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile))/'
+ files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python))/'
args: [--config, gdb/contrib/setup.cfg]
- repo: local
hooks:
diff --git a/gdb/python/lib/gdb/dap/scopes.py b/gdb/python/lib/gdb/dap/scopes.py
index 1b98c4f..3ac7368 100644
--- a/gdb/python/lib/gdb/dap/scopes.py
+++ b/gdb/python/lib/gdb/dap/scopes.py
@@ -22,7 +22,7 @@ from .sources import make_source
from .startup import in_gdb_thread
from .varref import BaseReference
-# Map DAP frame IDs to scopes. This ensures that scopes are re-used.
+# Map DAP frame IDs to scopes. This ensures that scopes are reused.
frame_to_scope = {}