mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-142627: Ignore anonymous mappings in Linux remote debugging (#142628)
This commit is contained in:
parent
7aa353c414
commit
e0bca091a4
1 changed files with 5 additions and 0 deletions
|
|
@ -722,6 +722,11 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
|
|||
}
|
||||
|
||||
const char *path = line + path_pos;
|
||||
if (path[0] == '[' && path[strlen(path)-1] == ']') {
|
||||
// Skip [heap], [stack], [anon:cpython:pymalloc], etc.
|
||||
continue;
|
||||
}
|
||||
|
||||
const char *filename = strrchr(path, '/');
|
||||
if (filename) {
|
||||
filename++; // Move past the '/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue