Various fixes in gdb (#8144)

* gdb.events.BreakpointEvent: fix various typos

* gdb.printing: remove GenPrinterFunction

This was meant to be a private type alias, but it is unused and a
duplicate of the better named gdb._PrettyPrinterLookupFunction.
This commit is contained in:
Pierre-Marie de Rodat
2022-06-23 15:03:03 +02:00
committed by GitHub
parent 780269823b
commit 6a5abd38cf
2 changed files with 3 additions and 5 deletions

View File

@@ -27,8 +27,8 @@ class StopEvent(ThreadEvent):
stop_signal: str
class BreakpointEvent(StopEvent):
breakpoints = Sequence[gdb.Breakpoint]
breakkpoint: gdb.Breakpoint
breakpoints: Sequence[gdb.Breakpoint]
breakpoint: gdb.Breakpoint
class StopEventRegistry:
def connect(self, __object: Callable[[StopEvent], object]) -> None: ...

View File

@@ -1,4 +1,4 @@
from collections.abc import Callable, Iterable
from collections.abc import Iterable
import gdb
from gdb import _PrettyPrinterLookupFunction
@@ -19,8 +19,6 @@ class SubPrettyPrinter:
def __init__(self, name: str) -> None: ...
GenPrinterFunction = Callable[[gdb.Value], PrettyPrinter]
class RegexpCollectionPrettyPrinter(PrettyPrinter):
def __init__(self, name: str) -> None: ...
def add_printer(self, name: str, regexp: str, gen_printer: _PrettyPrinterLookupFunction) -> None: ...