Registry / type-stubs / types-gdb

types-gdb

JSON →
library16.3.0.20260518pypypiunverified

Typing stubs for GDB (GNU Debugger) provided by typeshed. Version 16.3.0.20260408 provides type annotations for the gdb Python module, enabling static type checking with mypy or pyright. Stubs are updated weekly to match the latest GDB release.

pip install types-gdb
INSTALL
IMPORT
SIG · TYPES-GDB
T
types-gdb
type-stubspythonv16.3.0.20260518
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v16.3.0.20260518 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gdb
import gdb_stubs as gdb
import gdb

Register a breakpoint event handler using typed stubs.

import gdb def break_handler(event: gdb.BreakpointEvent) -> None: print(f"Hit breakpoint {event.breakpoint.number}") gdb.events.stop.connect(break_handler) # Run with: gdb -batch -ex run -ex bt ./some_binary
Debug
Known issues
deprecatedImporting from 'gdb.types' is deprecated; use 'gdb' directly for type hints.
fix
Replace 'from gdb.types import ...' with 'import gdb' and use gdb.Type directly.
affects: >=16.0.0
breakingEarlier versions may have incorrect signatures for gdb.execute. If using type: ignore or casting, update stubs.
fix
Upgrade to 16.x and ensure your type hints match the new stub signatures.
affects: <16.0.0
gotchaThese stubs assume the gdb module is available. They only provide type hints and do not install the debugger.
fix
Ensure GDB is installed (e.g., 'apt install gdb') separately from the stubs.
affects: all
Upgrade
Version history
16.3.0.20260518latest on PyPI · released May 18, 2026
Audit
Dependencies
gdboptionalRuntime package implementing the debugger; stubs are for type-checking only
Agent activity
43 hits · last 30 days
node
37
OpenAI (training)
1
Resources
types-gdb — pip install types-gdb · libregistry