drgn/libdrgn/python
Omar Sandoval afc8a5693e libdrgn: python: use new PyLong_AsNativeBytes() in Python 3.13
Python 3.13.0a4 added a new public function, PyLong_AsNativeBytes(), to
replace the private _PyLong_AsByteArray(). It also modified the
signature of _PyLong_AsByteArray(). Let's use PyLong_AsNativeBytes()
when it's available. (PyLong_AsNativeBytes() also has the exact overflow
behavior we wanted, so it's a win-win.)

Closes #385.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2024-03-04 10:10:23 -08:00
..
drgnpy.h Convert helpers to use the default program 2023-11-30 14:44:51 -08:00
error.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
helpers.c Convert helpers to use the default program 2023-11-30 14:44:51 -08:00
language.c Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
main.c Convert helpers to use the default program 2023-11-30 14:44:51 -08:00
object.c libdrgn: python: use new PyLong_AsNativeBytes() in Python 3.13 2024-03-04 10:10:23 -08:00
platform.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
program.c Add drgn.Program.stack_trace_from_pcs() 2024-01-13 23:23:41 -08:00
stack_trace.c libdrgn: promise that drgn_format_*() out parameter is not modified on error 2023-12-04 13:00:01 -08:00
symbol.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
test.c libdrgn: enable -Wmissing-prototypes 2023-10-02 15:54:20 -07:00
thread.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
type.c libdrgn: python: don't use private dict APIs removed in Python 3.13 2024-01-17 00:32:52 -08:00
util.c Allow Program.set_core_dump() and program_from_core_dump() to accept FD 2023-09-11 10:58:50 -07:00