vagd.gdb
Submodules
Attributes
Exceptions
Unspecified run-time error. |
|
Unspecified run-time error. |
|
Common base class for all non-exit exceptions. |
Classes
Base class for protocol classes. |
|
Base class for protocol classes. |
|
Base class for protocol classes. |
|
Base class for protocol classes. |
|
Base class for protocol classes. |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package Contents
- vagd.gdb.PYTHONDIR: str
- vagd.gdb.STDOUT: int
- vagd.gdb.STDERR: int
- vagd.gdb.STDLOG: int
- class vagd.gdb.GDB
- execute(command: str, from_tty: bool = ..., to_string: bool = ...) str | None
- breakpoints() collections.abc.Sequence[Breakpoint]
- rbreak(regex: str, minsyms: bool = ..., throttle: int = ..., symtabs: collections.abc.Iterator[Symtab] = ...) list[Breakpoint]
- parameter(__parameter: str) bool | int | str | None
- set_parameter(name: str, value: bool | int | str | None) None
- with_parameter(name: str, value: bool | int | str | None) contextlib.AbstractContextManager[None]
- history_count() int
- set_convenience_variable(__name: str, __value: _ValueOrNative | None) None
- find_pc_line(pc: int | Value) Symtab_and_line
- post_event(__event: collections.abc.Callable[[], object]) None
- write(string: str, stream: int = ...) None
- flush(stream: int = ...) None
- target_charset() str
- target_wide_charset() str
- host_charset() str
- solib_name(address: int) str | None
- decode_line(__expression: str = ...) tuple[str | None, tuple[Symtab_and_line, Ellipsis] | None]
- prompt_hook(current_prompt: str) str
- architecture_names() list[str]
- connections() list[TargetConnection]
- exception vagd.gdb.error
Bases:
RuntimeErrorUnspecified run-time error.
- exception vagd.gdb.GdbError
Bases:
ExceptionCommon base class for all non-exit exceptions.
- class vagd.gdb.Value(val: _ValueOrNative)
-
- is_optimized_out: bool
- is_lazy: bool
- __index__() int
- __int__() int
- __float__() float
- __add__(other: _ValueOrInt) Value
- __sub__(other: _ValueOrInt) Value
- __mul__(other: _ValueOrInt) Value
- __truediv__(other: _ValueOrInt) Value
- __mod__(other: _ValueOrInt) Value
- __and__(other: _ValueOrInt) Value
- __or__(other: _ValueOrInt) Value
- __xor__(other: _ValueOrInt) Value
- __lshift__(other: _ValueOrInt) Value
- __rshift__(other: _ValueOrInt) Value
- __eq__(other: _ValueOrInt) bool
- __ne__(other: _ValueOrInt) bool
- __lt__(other: _ValueOrInt) bool
- __le__(other: _ValueOrInt) bool
- __gt__(other: _ValueOrInt) bool
- __ge__(other: _ValueOrInt) bool
- __call__(*args: _ValueOrNative) Value
- format_string(raw: bool = ..., pretty_arrays: bool = ..., pretty_structs: bool = ..., array_indexes: bool = ..., symbols: bool = ..., unions: bool = ..., address: bool = ..., deref_refs: bool = ..., actual_objects: bool = ..., static_members: bool = ..., max_elements: int = ..., max_depth: int = ..., repeat_threshold: int = ..., format: str = ...) str
- string(encoding: str = ..., errors: str = ..., length: int = ...) str
- lazy_string(encoding: str = ..., length: int = ...) LazyString
- fetch_lazy() None
- class vagd.gdb.Type
- alignof: int
- code: int
- dynamic: bool
- name: str
- sizeof: int
- tag: str | None
- range() tuple[int, int]
- class vagd.gdb.Field
- bitpos: int
- enumval: int
- name: str | None
- artificial: bool
- is_base_class: bool
- bitsize: int
- vagd.gdb.TYPE_CODE_PTR: int
- vagd.gdb.TYPE_CODE_ARRAY: int
- vagd.gdb.TYPE_CODE_STRUCT: int
- vagd.gdb.TYPE_CODE_UNION: int
- vagd.gdb.TYPE_CODE_ENUM: int
- vagd.gdb.TYPE_CODE_FLAGS: int
- vagd.gdb.TYPE_CODE_FUNC: int
- vagd.gdb.TYPE_CODE_INT: int
- vagd.gdb.TYPE_CODE_FLT: int
- vagd.gdb.TYPE_CODE_VOID: int
- vagd.gdb.TYPE_CODE_SET: int
- vagd.gdb.TYPE_CODE_RANGE: int
- vagd.gdb.TYPE_CODE_STRING: int
- vagd.gdb.TYPE_CODE_BITSTRING: int
- vagd.gdb.TYPE_CODE_ERROR: int
- vagd.gdb.TYPE_CODE_METHOD: int
- vagd.gdb.TYPE_CODE_METHODPTR: int
- vagd.gdb.TYPE_CODE_MEMBERPTR: int
- vagd.gdb.TYPE_CODE_REF: int
- vagd.gdb.TYPE_CODE_RVALUE_REF: int
- vagd.gdb.TYPE_CODE_CHAR: int
- vagd.gdb.TYPE_CODE_BOOL: int
- vagd.gdb.TYPE_CODE_COMPLEX: int
- vagd.gdb.TYPE_CODE_TYPEDEF: int
- vagd.gdb.TYPE_CODE_NAMESPACE: int
- vagd.gdb.TYPE_CODE_DECFLOAT: int
- vagd.gdb.TYPE_CODE_INTERNAL_FUNCTION: int
- class vagd.gdb._PrettyPrinter
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- to_string() str | LazyString
- type vagd.gdb._PrettyPrinterLookupFunction = Callable[[Value], _PrettyPrinter | None]
- vagd.gdb.default_visualizer(__value: Value) _PrettyPrinter | None
- vagd.gdb.pretty_printers: list[_PrettyPrinterLookupFunction]
- class vagd.gdb._FrameFilter
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- name: str
- enabled: bool
- priority: int
- filter(iterator: collections.abc.Iterator[_FrameDecorator]) collections.abc.Iterator[_FrameDecorator]
- class vagd.gdb._SymValueWrapper
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- value() _ValueOrNative | None
- class vagd.gdb._FrameDecorator
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- function() str | None
- address() int | None
- filename() str | None
- line() int | None
- frame_args() collections.abc.Iterator[_SymValueWrapper] | None
- frame_locals() collections.abc.Iterator[_SymValueWrapper] | None
- class vagd.gdb.PendingFrame
- read_register(__reg: str | RegisterDescriptor | int) Value
- create_unwind_info(__frame_id: object) UnwindInfo
- architecture() Architecture
- level() int
- class vagd.gdb.UnwindInfo
- add_saved_register(__reg: str | RegisterDescriptor | int, __value: Value) None
- class vagd.gdb.Unwinder
- name: str
- enabled: bool
- __call__(pending_frame: Frame) UnwindInfo | None
- type vagd.gdb._BufferType = _typeshed.ReadableBuffer
- class vagd.gdb.Inferior
- num: int
- connection_num: int
- pid: int
- was_attached: bool
- is_valid() bool
- threads() tuple[InferiorThread, Ellipsis]
- architecture() Architecture
- read_memory(address: _ValueOrInt, length: int) memoryview
- write_memory(address: _ValueOrInt, buffer: _BufferType, length: int = ...) memoryview
- search_memory(address: _ValueOrInt, length: int, pattern: _BufferType) int | None
- thread_from_handle(handle: Value) InferiorThread
- vagd.gdb.selected_thread() InferiorThread
- class vagd.gdb.InferiorThread
- name: str | None
- num: int
- global_num: int
- ptid: tuple[int, int, int]
- is_valid() bool
- switch() None
- is_stopped() bool
- is_running() bool
- is_exited() bool
- handle() bytes
- vagd.gdb.stop_recording() None
- class vagd.gdb.Record
- method: str
- format: str | None
- begin: Instruction
- end: Instruction
- replay_position: Instruction | None
- instruction_history: list[Instruction]
- function_call_history: list[RecordFunctionSegment]
- goto(__instruction: Instruction) None
- class vagd.gdb.RecordInstruction
Bases:
Instruction- number: int
- sal: Symtab_and_line | None
- is_speculative: bool
- class vagd.gdb.RecordGap
Bases:
Instruction- number: int
- error_code: int
- error_string: str
- class vagd.gdb.RecordFunctionSegment
- number: int
- level: int | None
- instructions: list[RecordInstruction | RecordGap]
- up: RecordFunctionSegment | None
- prev: RecordFunctionSegment | None
- next: RecordFunctionSegment | None
- class vagd.gdb.Command(name: str, command_class: int, completer_class: int = ..., prefix: bool = ...)
- dont_repeat() None
- invoke(argument: str, from_tty: bool) None
- complete(text: str, word: str) object
- vagd.gdb.string_to_argv(__argv: str) list[str]
- vagd.gdb.COMMAND_NONE: int
- vagd.gdb.COMMAND_RUNNING: int
- vagd.gdb.COMMAND_DATA: int
- vagd.gdb.COMMAND_STACK: int
- vagd.gdb.COMMAND_FILES: int
- vagd.gdb.COMMAND_SUPPORT: int
- vagd.gdb.COMMAND_STATUS: int
- vagd.gdb.COMMAND_BREAKPOINTS: int
- vagd.gdb.COMMAND_TRACEPOINTS: int
- vagd.gdb.COMMAND_TUI: int
- vagd.gdb.COMMAND_USER: int
- vagd.gdb.COMMAND_OBSCURE: int
- vagd.gdb.COMMAND_MAINTENANCE: int
- vagd.gdb.COMPLETE_NONE: int
- vagd.gdb.COMPLETE_FILENAME: int
- vagd.gdb.COMPLETE_LOCATION: int
- vagd.gdb.COMPLETE_COMMAND: int
- vagd.gdb.COMPLETE_SYMBOL: int
- vagd.gdb.COMPLETE_EXPRESSION: int
- class vagd.gdb.MICommand(name: str)
- name: str
- installed: bool
- invoke(arguments: list[str]) dict[str, object] | None
- class vagd.gdb.Parameter(name: str, command_class: int, parameter_class: int, enum_sequence: collections.abc.Sequence[str] = ...)
- set_doc: str
- show_doc: str
- value: object
- get_set_string() str
- get_show_string(svalue: str) str
- vagd.gdb.PARAM_BOOLEAN: int
- vagd.gdb.PARAM_AUTO_BOOLEAN: int
- vagd.gdb.PARAM_UINTEGER: int
- vagd.gdb.PARAM_INTEGER: int
- vagd.gdb.PARAM_STRING: int
- vagd.gdb.PARAM_STRING_NOESCAPE: int
- vagd.gdb.PARAM_OPTIONAL_FILENAME: int
- vagd.gdb.PARAM_FILENAME: int
- vagd.gdb.PARAM_ZINTEGER: int
- vagd.gdb.PARAM_ZUINTEGER: int
- vagd.gdb.PARAM_ZUINTEGER_UNLIMITED: int
- vagd.gdb.PARAM_ENUM: int
- class vagd.gdb.Function(name: str)
- invoke(*args: Value) _ValueOrNative
- class vagd.gdb.Progspace
- filename: str
- pretty_printers: list[_PrettyPrinterLookupFunction]
- type_printers: list[gdb.types._TypePrinter]
- frame_filters: list[_FrameFilter]
- find_pc_line(__pc: int) Symtab_and_line
- is_valid() bool
- solib_name(__address: int) str | None
- class vagd.gdb.Objfile
- filename: str | None
- username: str | None
- build_id: str | None
- pretty_printers: list[_PrettyPrinterLookupFunction]
- type_printers: list[gdb.types._TypePrinter]
- frame_filters: list[_FrameFilter]
- is_valid() bool
- add_separate_debug_file(file: str) None
- vagd.gdb.frame_stop_reason_string(__code: int) str
- vagd.gdb.invalidate_cached_frames() None
- vagd.gdb.NORMAL_FRAME: int
- vagd.gdb.INLINE_FRAME: int
- vagd.gdb.TAILCALL_FRAME: int
- vagd.gdb.SIGTRAMP_FRAME: int
- vagd.gdb.ARCH_FRAME: int
- vagd.gdb.SENTINEL_FRAME: int
- vagd.gdb.FRAME_UNWIND_NO_REASON: int
- vagd.gdb.FRAME_UNWIND_NULL_ID: int
- vagd.gdb.FRAME_UNWIND_OUTERMOST: int
- vagd.gdb.FRAME_UNWIND_UNAVAILABLE: int
- vagd.gdb.FRAME_UNWIND_INNER_ID: int
- vagd.gdb.FRAME_UNWIND_SAME_ID: int
- vagd.gdb.FRAME_UNWIND_NO_SAVED_PC: int
- vagd.gdb.FRAME_UNWIND_MEMORY_ERROR: int
- vagd.gdb.FRAME_UNWIND_FIRST_ERROR: int
- class vagd.gdb.Frame
- is_valid() bool
- name() str | None
- architecture() Architecture
- type() int
- unwind_stop_reason() int
- find_sal() Symtab_and_line
- read_register(__register: str | RegisterDescriptor | int) Value
- select() None
- level() int
- class vagd.gdb.Block
- start: int
- end: int
- is_global: bool
- is_static: bool
- is_valid() bool
- __iter__() BlockIterator
- vagd.gdb.lookup_symbol(name: str, block: Block | None = ..., domain: int = ...) tuple[Symbol | None, bool]
- class vagd.gdb.Symbol
-
- line: int
- name: str
- linkage_name: str
- print_name: str
- addr_class: int
- needs_frame: bool
- is_argument: bool
- is_constant: bool
- is_function: bool
- is_variable: bool
- is_valid() bool
- vagd.gdb.SYMBOL_UNDEF_DOMAIN: int
- vagd.gdb.SYMBOL_VAR_DOMAIN: int
- vagd.gdb.SYMBOL_STRUCT_DOMAIN: int
- vagd.gdb.SYMBOL_LABEL_DOMAIN: int
- vagd.gdb.SYMBOL_MODULE_DOMAIN: int
- vagd.gdb.SYMBOL_COMMON_BLOCK_DOMAIN: int
- vagd.gdb.SYMBOL_LOC_UNDEF: int
- vagd.gdb.SYMBOL_LOC_CONST: int
- vagd.gdb.SYMBOL_LOC_STATIC: int
- vagd.gdb.SYMBOL_LOC_REGISTER: int
- vagd.gdb.SYMBOL_LOC_ARG: int
- vagd.gdb.SYMBOL_LOC_REF_ARG: int
- vagd.gdb.SYMBOL_LOC_REGPARM_ADDR: int
- vagd.gdb.SYMBOL_LOC_LOCAL: int
- vagd.gdb.SYMBOL_LOC_TYPEDEF: int
- vagd.gdb.SYMBOL_LOC_LABEL: int
- vagd.gdb.SYMBOL_LOC_BLOCK: int
- vagd.gdb.SYMBOL_LOC_CONST_BYTES: int
- vagd.gdb.SYMBOL_LOC_UNRESOLVED: int
- vagd.gdb.SYMBOL_LOC_OPTIMIZED_OUT: int
- vagd.gdb.SYMBOL_LOC_COMPUTED: int
- vagd.gdb.SYMBOL_LOC_COMMON_BLOCK: int
- class vagd.gdb.LineTable
Bases:
collections.abc.Iterator[LineTableEntry]- __iter__() _typeshed.Self
- __next__() LineTableEntry
Return the next item from the iterator. When exhausted, raise StopIteration
- line(__line: int) tuple[LineTableEntry, Ellipsis]
- has_line(__line: int) bool
- source_lnes() list[int]
- class vagd.gdb.Breakpoint(spec: str, type: int = ..., wp_class: int = ..., internal: bool = ..., temporary: bool = ..., qualified: bool = ...)
- class vagd.gdb.Breakpoint(source: str = ..., function: str = ..., label: str = ..., line: int = ..., internal: bool = ..., temporary: bool = ..., qualified: bool = ...)
- stop() bool
- is_valid() bool
- delete() None
- enabled: bool
- silent: bool
- pending: bool
- thread: int | None
- task: str | None
- ignore_count: int
- number: int
- type: int
- visible: bool
- temporary: bool
- hit_count: int
- location: str | None
- expression: str | None
- condition: str | None
- commands: str | None
- vagd.gdb.BP_BREAKPOINT: int
- vagd.gdb.BP_HARDWARE_BREAKPOINT: int
- vagd.gdb.BP_WATCHPOINT: int
- vagd.gdb.BP_HARDWARE_WATCHPOINT: int
- vagd.gdb.BP_READ_WATCHPOINT: int
- vagd.gdb.BP_ACCESS_WATCHPOINT: int
- vagd.gdb.BP_CATCHPOINT: int
- vagd.gdb.WP_READ: int
- vagd.gdb.WP_WRITE: int
- vagd.gdb.WP_ACCESS: int
- class vagd.gdb.FinishBreakpoint(frame: Frame = ..., internal: bool = ...)
Bases:
Breakpoint- out_of_scope() None
- class vagd.gdb.Architecture
- name() str
- disassemble(start_pc: int, end_pc: int = ..., count: int = ...) list[dict[str, object]]
- registers(reggroup: str = ...) RegisterDescriptorIterator
- register_groups() RegisterGroupsIterator
- class vagd.gdb.RegisterDescriptorIterator
Bases:
collections.abc.Iterator[RegisterDescriptor]- __next__() RegisterDescriptor
Return the next item from the iterator. When exhausted, raise StopIteration
- find(name: str) RegisterDescriptor | None
- class vagd.gdb.RegisterGroupsIterator
Bases:
collections.abc.Iterator[RegisterGroup]- __next__() RegisterGroup
Return the next item from the iterator. When exhausted, raise StopIteration
- class vagd.gdb.TargetConnection
- is_valid() bool
- num: int
- type: str
- description: str
- details: str | None
- class vagd.gdb.RemoteTargetConnection
Bases:
TargetConnection- send_packet(packet: str | bytes) bytes
- vagd.gdb.register_window_type(name: str, factory: collections.abc.Callable[[TuiWindow], _Window]) None
- class vagd.gdb.TuiWindow
- width: int
- height: int
- title: str
- is_valid() bool
- erase() None
- write(__string: str, __full_window: bool = ...) None
- class vagd.gdb._Window
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- close() None
- render() None
- hscroll(num: int) None
- vscroll(num: int) None
- click(x: int, y: int, button: int) None