summaryrefslogtreecommitdiff
path: root/gdb-helpers/rp2040.py
diff options
context:
space:
mode:
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