2
2
# reading the documentation
3
3
# (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html).
4
4
5
+ import _typeshed
5
6
import threading
6
7
from collections .abc import Callable , Iterator , Mapping , Sequence
7
8
from contextlib import AbstractContextManager
8
- from typing import (
9
- Any ,
10
- Final ,
11
- Generic ,
12
- Literal ,
13
- Protocol ,
14
- TypeVar ,
15
- final ,
16
- overload ,
17
- type_check_only ,
18
- )
9
+ from typing import Any , Final , Generic , Literal , Protocol , TypeVar , final , overload , type_check_only
10
+ from typing_extensions import TypeAlias , deprecated
19
11
20
- import _typeshed
21
12
import gdb .FrameDecorator
22
13
import gdb .types
23
14
from gdb .missing_debug import MissingDebugHandler
24
- from typing_extensions import TypeAlias , deprecated
25
15
26
16
# The following submodules are automatically imported
27
- from . import events as events
28
- from . import printing as printing
29
- from . import prompt as prompt
30
- from . import types as types
17
+ from . import events as events , printing as printing , prompt as prompt , types as types
31
18
32
19
# Basic
33
20
@@ -61,7 +48,6 @@ def convenience_variable(name: str, /) -> Value | None: ...
61
48
def set_convenience_variable (name : str , value : _ValueOrNative | None , / ) -> None : ...
62
49
def parse_and_eval (expression : str , global_context : bool = False ) -> Value : ...
63
50
def format_address (address : int , progspace : Progspace = ..., architecture : Architecture = ...): ...
64
-
65
51
def find_pc_line (pc : int | Value ) -> Symtab_and_line : ...
66
52
def post_event (event : Callable [[], object ], / ) -> None : ...
67
53
def write (string : str , stream : int = ...) -> None : ...
@@ -337,7 +323,6 @@ class Inferior:
337
323
def arguments (self ) -> str | None : ...
338
324
@arguments .setter
339
325
def arguments (self , args : str | Sequence [str ]) -> None : ...
340
-
341
326
def is_valid (self ) -> bool : ...
342
327
def threads (self ) -> tuple [InferiorThread , ...]: ...
343
328
def architecture (self ) -> Architecture : ...
@@ -959,6 +944,7 @@ class ExitedEvent(Event):
959
944
inferior : Inferior
960
945
961
946
class ThreadExitedEvent (Event ): ...
947
+
962
948
class StopEvent (ThreadEvent ):
963
949
details : dict [str , object ]
964
950
@@ -1014,6 +1000,7 @@ class ConnectionEvent(Event):
1014
1000
connection : TargetConnection
1015
1001
1016
1002
class ExecutableChangedEvent (Event ): ...
1003
+
1017
1004
class TuiEnabledEvent (Event ):
1018
1005
enabled : bool
1019
1006
@@ -1027,7 +1014,6 @@ class EventRegistry(Generic[_ET]):
1027
1014
class ValuePrinter : ...
1028
1015
1029
1016
def blocked_signals (): ...
1030
-
1031
1017
def notify_mi (name : str , data : dict [str , object ] | None = None ): ...
1032
1018
def interrupt (): ...
1033
1019
def execute_mi (command : str , * args : str ) -> dict [str , object ]: ...
0 commit comments