Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Python/remote_debugging.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,11 @@ get_py_runtime(proc_handle_t* handle)

#ifdef MS_WINDOWS
// On Windows, search for 'python' in executable or DLL
#ifdef ___clang__
const char* secname = "_PyRuntime";
#else
const char* secname = "PyRuntime";
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use secname instead of "PyRuntime" below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah oops 🤦 thanks 3AM things.

address = search_windows_map_for_section(handle, "PyRuntime", L"python");
if (address == 0) {
// Error out: 'python' substring covers both executable and DLL
Expand Down
Loading