Matt
e67340b98c
Add global_context keyword to gdb.parse_and_eval in GDB stub ( #12269 )
2024-07-03 11:00:29 -07:00
Sami Liedes
d5972ba565
[gdb] Add __r{add,sub,mul,truediv,mod}__ for gdb.Value ( #11707 )
2024-04-07 06:53:56 -04:00
peace-maker
d3c831ce7d
Update GDB stubs to 12.1 ( #11665 )
2024-03-31 15:27:17 -07:00
peace-maker
d78ce5906b
Run gdb stubtests ( #11644 )
...
The gdb package is only available inside gdb and cannot be installed externally through e.g. pip.
Run the stubtest inside gdb.
2024-03-26 10:57:35 +01:00
peace-maker
9dcadd2d57
Overload gdb.execute return type ( #11638 )
2024-03-21 17:06:58 +01:00
Shantanu
88fa182253
Use PEP 570 syntax in third party stubs ( #11554 )
2024-03-10 14:11:43 +01:00
Gulshan Singh
e80ad6b2bc
Add VERSION to gdb stubs ( #11529 )
2024-03-04 18:01:07 +01:00
Shantanu
5286722ef3
Fix inconsistencies in gdb stubs ( #11227 )
...
See #11225
2024-01-11 19:41:48 -08:00
Avasam
22b055a147
Fill in all missing upstream_repository fields ( #10571 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-08-13 22:03:33 +01:00
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