summaryrefslogtreecommitdiffstats
path: root/Modules/_remote_debugging_module.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.14] gh-136476: Remove creation of unused list (GH-136494) (GH-136495)Miss Islington (bot)2025-07-101-6/+0
| | | | | (cherry picked from commit b44316a0976fb3fcd50bae9d67b0810ee0252d93) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.14] gh-136476: Show the full stack in get_async_stack_trace in ↵Miss Islington (bot)2025-07-091-524/+486
| | | | | | | | _remote_debugging (GH-136483) (#136490) gh-136476: Show the full stack in get_async_stack_trace in _remote_debugging (GH-136483) (cherry picked from commit ea45a2f97cb1d4774a6f88e63c6ce0a487f83031) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.14] gh-91048: Revert the memory cache removal for remote debugging ↵Miss Islington (bot)2025-07-091-0/+10
| | | | | | | | | | | (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-15/+68
| | | | | (GH-136005) (#136080) (cherry picked from commit 5334732f9c8a44722e4b339f4bb837b5b0226991)
* [3.14] gh-111178: fix UBSan failures for `RemoteUnwinderObject` (GH-135539) ↵Miss Islington (bot)2025-06-151-1/+4
| | | | (#135547)
* [3.14] gh-135371: Clean tags from pointers in all cases in remote debugging ↵Miss Islington (bot)2025-06-151-46/+60
| | | | module (GH-135534) (#135545)
* [3.14] gh-135371: Fix asyncio introspection output to include internal ↵Miss Islington (bot)2025-06-151-97/+242
| | | | | | | | coroutine chains (GH-135436) (#135509) gh-135371: Fix asyncio introspection output to include internal coroutine chains (GH-135436) (cherry picked from commit 028309fb47869b665f55d10e9eabf7952bf7dbd3) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.14] gh-91048: Reorder result tuple of parse_code_object (GH-134898) ↵Miss Islington (bot)2025-06-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | (#134956) * gh-91048: Reorder result tuple of parse_code_object (GH-134898) Reorder result tuple of parse_code_object The standard followed by APIs like pstat.Stats is to take a file, line, function triplet. The parse_code_object function (and callers exposing this in Python like RemoteUnwinder.get_stack_trace) return function, file, line triplets which requires the caller to reorder these when using it in classes like pstat.Stats. (cherry picked from commit 8e8786f8986353e20c1c4406c34409a6139fa073) Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com> * Reorder asyncio --------- Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* [3.14] gh-134693: Fix `[-Wmaybe-uninitialized]` warning in ↵Miss Islington (bot)2025-05-261-9/+8
| | | | | | | | `_remote_debugging_module.c` (GH-134694) (#134726) gh-134693: Fix `[-Wmaybe-uninitialized]` warning in `_remote_debugging_module.c` (GH-134694) (cherry picked from commit 806107d7a2fa9baa76d4025f46fab2c8725963f4) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.14] gh-91048: Add better error messages for remote debugging for CI ↵Miss Islington (bot)2025-05-261-61/+295
| | | | builds (GH-134682) (#134719)
* [3.14] gh-91048: Refactor and optimize remote debugging module (#134652) ↵Pablo Galindo Salgado2025-05-251-993/+1884
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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)
* [3.14] gh-91048: Fix error path result in _remote_debugging_module ↵Miss Islington (bot)2025-05-211-2/+2
| | | | (GH-134347) (#134399)
* GH-91048: Minor fixes for ``_remotedebugging`` & rename to ↵Adam Turner2025-05-051-0/+1800
``_remote_debugging`` (#133398)