Alex Waygood
7e0b9b44de
Fix typos in extra_description fields ( #9883 )
2023-03-14 08:15:15 -07:00
Alex Waygood
8e7b78a8e8
Bump black to 23.1.0 ( #9647 )
2023-02-01 06:06:04 -08:00
bzoracler
dfe844c200
gdb-stubs fixes (#9439 )
...
* fix: Union subprinters with `None`
See a4418a9c6f/gdb/python/lib/gdb/printing.py (L52-L55)
* fix: Allow callables as argument to `printer`
See a4418a9c6f/gdb/python/lib/gdb/printing.py (L77) and the description of "function / old way" in the body of `register_pretty_printer`.
The new union's signature is equivalent to `gdb.printing.PrettyPrinter(...).__call__`.
* fix: make `gdb.Block` iterable over `gdb.Symbol`
See https://sourceware.org/gdb/onlinedocs/gdb/Blocks-In-Python.html#Blocks-In-Python :
> A gdb.Block is iterable. The iterator returns the symbols (see [Symbols In Python](https://sourceware.org/gdb/onlinedocs/gdb/Symbols-In-Python.html#Symbols-In-Python )) local to the block.
Implementation of `gdb.BlockIterator` is given in https://github.com/bminor/binutils-gdb/blob/gdb-12-branch/gdb/python/py-block.c . As with many of the other classes, `BlockIterator` is actually imported from the built-in `_gdb` module (a4418a9c6f/gdb/python/lib/gdb/__init__.py (L28) ).
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-05 16:07:36 +00:00
Gulshan Singh
c13a9ed985
Add type stubs for gdb.Value comparison operators ( #9411 )
2022-12-27 21:56:19 +00:00
Pierre-Marie de Rodat
bd7b74a316
gdb: add missing automatic imports ( #8788 )
...
When GDB has just started, several `gdb` submodules are automatically
loaded, so user code does not have to manually import them (for instance
`import gdb.events`). Reflect that in `gdb` stubs.
2022-09-24 18:32:10 +01:00
Alex Waygood
9ccf4589a0
Fix various TypeAlias issues ( #8248 )
2022-07-07 17:48:44 +05:30
Pierre-Marie de Rodat
6a5abd38cf
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.
2022-06-23 14:03:03 +01:00
Shantanu
64181e8dad
stubtest: use separate table in METADATA.toml ( #8096 )
2022-06-19 00:43:24 -07:00
Pierre-Marie de Rodat
640053e8e3
Add stubs for "gdb" ( #8013 )
...
This commit adds type stubs for the "gdb" package, the Python API to
extend GDB (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html ).
2022-06-14 22:28:54 -07:00