summaryrefslogtreecommitdiffstats
path: root/Python/remote_debug.h
Commit message (Collapse)AuthorAgeFilesLines
* [3.14] gh-91048: Revert the memory cache removal for remote debugging ↵Miss Islington (bot)2025-07-091-0/+78
| | | | | | | | | | | (GH-136440) (#136443) gh-91048: Revert the memory cache removal for remote debugging (GH-136440) (cherry picked from commit 77d25e5b169f7c306d3a6d9ca6777c0a0be80d8f) gh-91048: Reintroduce the memory cache for remote debugging Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.14] gh-91048: Fix external inspection multi-threaded performance ↵Pablo Galindo Salgado2025-06-281-78/+0
| | | | | (GH-136005) (#136080) (cherry picked from commit 5334732f9c8a44722e4b339f4bb837b5b0226991)
* [3.14] Fix warnings `set but not used [-Wunused-but-set-variable]` in ↵Miss Islington (bot)2025-06-101-9/+0
| | | | | | | | remote_debug.h (GH-135290) (#135319) Fix warnings `set but not used [-Wunused-but-set-variable]` in remote_debug.h (GH-135290) (cherry picked from commit 49fc1f215aeb0f71445505191ccb65517b58a5aa) Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
* [3.14] Fix definition of `_Py_RemoteDebug_` symbols for static linking ↵Miss Islington (bot)2025-06-101-2/+12
| | | | | | | | (GH-135146) (#135318) Fix definition of `_Py_RemoteDebug_` symbols for static linking (GH-135146) (cherry picked from commit 2e1ad6eb26871a379e5d3aa626d6fc93eba72a86) Co-authored-by: Zanie Blue <contact@zanie.dev>
* [3.14] gh-134876: Add fallback for when process_vm_readv fails with ENOSYS ↵Miss Islington (bot)2025-06-071-0/+70
| | | | | | | | (GH-134878) (#135240) gh-134876: Add fallback for when process_vm_readv fails with ENOSYS (GH-134878) (cherry picked from commit ac9c3431cc5916a795c42b3e2b965233ceffe6f0) Co-authored-by: Daniel Golding <goldingd89@gmail.com>
* [3.14] gh-91048: Add better error messages for remote debugging for CI ↵Miss Islington (bot)2025-05-261-55/+212
| | | | builds (GH-134682) (#134719)
* [3.14] gh-91048: Correct Apple platform includes for iOS. (GH-134712) (#134714)Miss Islington (bot)2025-05-261-8/+8
| | | | | | Correct Apple platform includes for iOS. (cherry picked from commit 965662ee4a986605b60da470d9e7c1e9a6f922b3) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
* [3.14] gh-91048: Refactor and optimize remote debugging module (#134652) ↵Pablo Galindo Salgado2025-05-251-3/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#134673) gh-91048: Refactor and optimize remote debugging module (#134652) Completely refactor Modules/_remote_debugging_module.c with improved code organization, replacing scattered reference counting and error handling with centralized goto error paths. This cleanup improves maintainability and reduces code duplication throughout the module while preserving the same external API. Implement memory page caching optimization in Python/remote_debug.h to avoid repeated reads of the same memory regions during debugging operations. The cache stores previously read memory pages and reuses them for subsequent reads, significantly reducing system calls and improving performance. Add code object caching mechanism with a new code_object_generation field in the interpreter state that tracks when code object caches need invalidation. This allows efficient reuse of parsed code object metadata and eliminates redundant processing of the same code objects across debugging sessions. Optimize memory operations by replacing multiple individual structure copies with single bulk reads for the same data structures. This reduces the number of memory operations and system calls required to gather debugging information from the target process. Update Makefile.pre.in to include Python/remote_debug.h in the headers list, ensuring that changes to the remote debugging header force proper recompilation of dependent modules and maintain build consistency across the codebase. Also, make the module compatible with the free threading build as an extra :) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 42b25ad4d3d6bcdc28ddfe07d2bf8831378bb0d1)
* gh-91048: Chain some exceptions in _testexternalinspection.c (#132970)Sergey Miryanov2025-05-021-3/+14
|
* gh-91048: Fix _testexternalinspection.c on FreeBSD (#132945)Victor Stinner2025-04-251-3/+5
|
* gh-91048: Refactor _testexternalinspection and add Windows support (#132852)Pablo Galindo Salgado2025-04-251-0/+793