Files
typeshed/stubs
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
..
2022-11-25 18:36:00 -08:00
2022-11-25 11:29:30 +00:00
2022-10-12 09:35:12 +01:00
2022-12-27 17:46:54 +00:00
2023-01-05 16:07:36 +00:00
2022-12-24 11:07:47 +00:00
2023-01-05 11:37:08 +00:00
2023-01-04 11:29:58 +01:00
2022-11-29 12:07:17 +00:00
2022-11-01 12:37:21 +01:00
2023-01-04 23:38:41 +01:00
2022-11-22 10:18:49 +00:00
2022-11-25 09:34:37 +01:00
2022-11-22 20:46:29 -08:00
2022-10-03 09:33:15 -07:00
2023-01-02 23:49:02 +00:00
2023-01-05 15:25:11 +00:00
2022-07-19 19:15:20 -07:00
2022-11-18 10:32:30 +00:00
2022-11-13 11:11:47 +00:00
2022-12-23 14:24:30 +00:00
2022-11-16 10:23:50 +01:00