Skip to content

Commit 07cafa9

Browse files
Update remote_debugging.c
1 parent a468604 commit 07cafa9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python/remote_debugging.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,11 @@ get_py_runtime(proc_handle_t* handle)
548548

549549
#ifdef MS_WINDOWS
550550
// On Windows, search for 'python' in executable or DLL
551+
#ifdef ___clang__
552+
const char* secname = "_PyRuntime";
553+
#else
554+
const char* secname = "PyRuntime";
555+
#endif
551556
address = search_windows_map_for_section(handle, "PyRuntime", L"python");
552557
if (address == 0) {
553558
// Error out: 'python' substring covers both executable and DLL

0 commit comments

Comments
 (0)