summaryrefslogtreecommitdiff
path: root/gdb-helpers/rp2040.py
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 19:17:02 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 19:17:02 -0600
commit185c3329145959433b8b805de5f114b66b8fcaee (patch)
tree048ec8b781f1d3b45d29a1d862d724908d0d9785 /gdb-helpers/rp2040.py
parent2774e918b6ced670f80036532052189d568e5c5c (diff)
parent2300ddae5f98180311419413d98fbc8384470665 (diff)
Merge branch 'lukeshu/qa'
Diffstat (limited to 'gdb-helpers/rp2040.py')
-rw-r--r--gdb-helpers/rp2040.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb-helpers/rp2040.py b/gdb-helpers/rp2040.py
index 983e13b..45bdbc7 100644
--- a/gdb-helpers/rp2040.py
+++ b/gdb-helpers/rp2040.py
@@ -5,7 +5,7 @@
import typing
-import gdb
+import gdb # pylint: disable=import-error
def read_mmreg(addr: int) -> int:
@@ -110,9 +110,7 @@ class RP2040ShowInterrupts(gdb.Command):
"""Show the RP2040's interrupt state."""
def __init__(self) -> None:
- super(RP2040ShowInterrupts, self).__init__(
- "rp2040-show-interrupts", gdb.COMMAND_USER
- )
+ super().__init__("rp2040-show-interrupts", gdb.COMMAND_USER)
def invoke(self, arg: str, from_tty: bool) -> None:
self.arm_cortex_m0plus_registers()
@@ -219,7 +217,7 @@ class RP2040ShowDMA(gdb.Command):
"""Show the RP2040's DMA control registers."""
def __init__(self) -> None:
- super(RP2040ShowDMA, self).__init__("rp2040-show-dma", gdb.COMMAND_USER)
+ super().__init__("rp2040-show-dma", gdb.COMMAND_USER)
def invoke(self, arg: str, from_tty: bool) -> None:
base: int = 0x50000000
@@ -273,7 +271,7 @@ class RP2040ShowDMA(gdb.Command):
return "NULL "
return f"0x{val:08x}"
- ret = f"""
+ ret = """
╓sniff_enable
║╓bswap
║║╓irq_quiet