Commit Graph

7 Commits

Author SHA1 Message Date
Luke T. Shumaker
18d27d734a Fixes for gdb stubs (#13169)
* gdb: Clarify a comment
* gdb: Fix gdb.unwinder.Unwinder.__call__ argument. It takes a gdb.PendingFrame, not a gdb.Frame.
* gdb: Unwinders may implement a proto without subclassing gdb.unwinder.Unwinder
* gdb: Fix Breakpoint.__init__

 1. `line` should be `int|str`, not just `int` (IDK what a string means,
    but that it can be a string is clear if you read
    py-breakpoint.c:bppy_init().
 2. `type` argument should be able to be passed to the "location" form,
    not just the "spec" form, even if
    https://sourceware.org/gdb/current/onlinedocs/gdb.html/Breakpoints-In-Python.html
    neglects to mention it (don't worry, I'll be submitting a patch to fix
    the doc soon).
 3. Fix the positional argument order (based on GDB's sources, it isn't
    really documented)
 4. Use more `@overloads` to enforce that at least 1 of `function`,
    `label`, or `line` are given in the location form.
2024-12-03 16:35:06 +01:00
Sebastian Rittau
42f6a21a71 Bump gdb to 15.0.* (#12804)
Closes: #12777
2024-10-14 05:51:22 -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
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
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