mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
[3.14] gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (GH-137309) (#149391)
gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (GH-137309)
(cherry picked from commit 2995d45659)
Co-authored-by: Uxío García Andrade <uxiog21@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a458589a7e
commit
3f8c485660
@@ -0,0 +1 @@
|
||||
Fix :exc:`SystemError` when searching ELF Files in :func:`sys.remote_exec`.
|
||||
@@ -762,6 +762,7 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
|
||||
}
|
||||
|
||||
if (strstr(filename, substr)) {
|
||||
PyErr_Clear();
|
||||
retval = search_elf_file_for_section(handle, secname, start, path);
|
||||
if (retval
|
||||
&& (validator == NULL || validator(handle, retval)))
|
||||
|
||||
Reference in New Issue
Block a user