DBG: do not add breakpoints to query process cookie when attaching
This commit is contained in:
parent
44c9d81e60
commit
16d9e5a777
|
@ -1714,7 +1714,7 @@ static void cbLoadDll(LOAD_DLL_DEBUG_INFO* LoadDll)
|
|||
if(ModNameFromAddr(duint(base), modname, true) && scmp(modname, "ntdll.dll"))
|
||||
{
|
||||
if(settingboolget("Misc", "QueryProcessCookie"))
|
||||
cookie.HandleNtdllLoad();
|
||||
cookie.HandleNtdllLoad(bIsAttached);
|
||||
if(settingboolget("Misc", "TransparentExceptionStepping"))
|
||||
exceptionDispatchAddr = DbgValFromString("ntdll:KiUserExceptionDispatcher");
|
||||
}
|
||||
|
|
|
@ -9,10 +9,10 @@ struct CookieQuery
|
|||
bool removeAddrBp = false;
|
||||
bool removeRetBp = false;
|
||||
|
||||
void HandleNtdllLoad()
|
||||
void HandleNtdllLoad(bool isAttached)
|
||||
{
|
||||
*this = CookieQuery();
|
||||
if(valfromstring("ntdll.dll:NtQueryInformationProcess", &addr))
|
||||
if(!isAttached && valfromstring("ntdll.dll:NtQueryInformationProcess", &addr))
|
||||
{
|
||||
if(!BpGet(addr, BPNORMAL, nullptr, nullptr))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue