Commit db90e17d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Live target detection.

- DBGHELP_NOLIVE env variable is tested earlier to avoid some strange effects in live target detection - in WineDbg, delete DBGHELP_NOLIVE before attaching to a process, because we know it must be a live target
parent d5816d22
......@@ -170,8 +170,8 @@ static BOOL WINAPI process_invade_cb(char* name, DWORD base, DWORD size, void* u
static BOOL check_live_target(struct process* pcs)
{
if (!GetProcessId(pcs->handle)) return FALSE;
if (!elf_read_wine_loader_dbg_info(pcs)) return FALSE;
return getenv("DBGHELP_NOLIVE") == NULL;
if (GetEnvironmentVariableA("DBGHELP_NOLIVE", NULL, 0)) return FALSE;
return elf_read_wine_loader_dbg_info(pcs);
}
/******************************************************************
......
......@@ -83,6 +83,8 @@ BOOL dbg_attach_debuggee(DWORD pid, BOOL cofe, BOOL wfe)
}
dbg_curr_process->continue_on_first_exception = cofe;
SetEnvironmentVariableA("DBGHELP_NOLIVE", NULL);
if (wfe) /* shall we proceed all debug events until we get an exception ? */
{
dbg_interactiveP = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment