@@ -7,7 +7,7 @@ import threading
7
7
from collections .abc import Callable , Iterator , Mapping , Sequence
8
8
from contextlib import AbstractContextManager
9
9
from typing import Any , Final , Generic , Literal , Protocol , TypedDict , TypeVar , final , overload , type_check_only
10
- from typing_extensions import TypeAlias , deprecated
10
+ from typing_extensions import TypeAlias , deprecated , disjoint_base
11
11
12
12
import gdb .FrameDecorator
13
13
import gdb .types
@@ -74,6 +74,7 @@ class GdbError(Exception): ...
74
74
_ValueOrNative : TypeAlias = bool | int | float | str | Value | LazyString
75
75
_ValueOrInt : TypeAlias = Value | int
76
76
77
+ @disjoint_base
77
78
class Value :
78
79
address : Value
79
80
is_optimized_out : bool
@@ -406,6 +407,7 @@ class RecordFunctionSegment:
406
407
407
408
# CLI Commands
408
409
410
+ @disjoint_base
409
411
class Command :
410
412
def __init__ (self , name : str , command_class : int , completer_class : int = ..., prefix : bool = ...) -> None : ...
411
413
def dont_repeat (self ) -> None : ...
@@ -437,6 +439,7 @@ COMPLETE_EXPRESSION: int
437
439
438
440
# GDB/MI Commands
439
441
442
+ @disjoint_base
440
443
class MICommand :
441
444
name : str
442
445
installed : bool
@@ -446,6 +449,7 @@ class MICommand:
446
449
447
450
# Parameters
448
451
452
+ @disjoint_base
449
453
class Parameter :
450
454
set_doc : str
451
455
show_doc : str
@@ -682,6 +686,7 @@ class LineTable:
682
686
683
687
# Breakpoints
684
688
689
+ @disjoint_base
685
690
class Breakpoint :
686
691
# The where="spec" form of __init__(). See py-breakpoints.c:bppy_init():keywords for the positional order.
687
692
@overload
@@ -854,6 +859,7 @@ WP_ACCESS: int
854
859
855
860
# Finish Breakpoints
856
861
862
+ @disjoint_base
857
863
class FinishBreakpoint (Breakpoint ):
858
864
return_value : Value | None
859
865
@@ -907,6 +913,7 @@ class RegisterGroupsIterator(Iterator[RegisterGroup]):
907
913
908
914
# Connections
909
915
916
+ @disjoint_base
910
917
class TargetConnection :
911
918
def is_valid (self ) -> bool : ...
912
919
@@ -941,6 +948,7 @@ class _Window(Protocol):
941
948
def click (self , x : int , y : int , button : int ) -> None : ...
942
949
943
950
# Events
951
+ @disjoint_base
944
952
class Event : ...
945
953
946
954
class ThreadEvent (Event ):
0 commit comments