summaryrefslogtreecommitdiff
path: root/src/debug/di/shimprocess.cpp
diff options
context:
space:
mode:
authorDavid Mason <davmason@microsoft.com>2018-02-08 14:35:01 -0800
committerGitHub <noreply@github.com>2018-02-08 14:35:01 -0800
commit3d689d00843618105e735c5647e1cb64e721a333 (patch)
treeb9a05efa47453c907289333eee643e022fabcfb1 /src/debug/di/shimprocess.cpp
parent7caf7f3198131dc4dc24e5e65fc2d8ce49fadf14 (diff)
downloadcoreclr-3d689d00843618105e735c5647e1cb64e721a333.tar.gz
coreclr-3d689d00843618105e735c5647e1cb64e721a333.tar.bz2
coreclr-3d689d00843618105e735c5647e1cb64e721a333.zip
Debugger api to set a breakpoint on offset 0 of all methods (#15819)
* Debugger api to set a breakpoint on offset 0 of all methods * code review feedback * more code review feedback * respect IsIl in CorDbFunctionBreakoint() * change SIMPLIFYING_ASSERT to SIMPLIFYING_ASSUMPTION_SUCCEEDED for hrs, it outputs a much better diagnostic message
Diffstat (limited to 'src/debug/di/shimprocess.cpp')
-rw-r--r--src/debug/di/shimprocess.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debug/di/shimprocess.cpp b/src/debug/di/shimprocess.cpp
index 46c35fdc2b..99967a2af9 100644
--- a/src/debug/di/shimprocess.cpp
+++ b/src/debug/di/shimprocess.cpp
@@ -365,12 +365,12 @@ DWORD WINAPI CallStopGoThreadProc(LPVOID parameter)
// Calling Stop + Continue will synchronize the process and force any queued events to be called.
// Stop is synchronous and will block until debuggee is synchronized.
hr = pProc->Stop(INFINITE);
- SIMPLIFYING_ASSUMPTION(SUCCEEDED(hr));
+ SIMPLIFYING_ASSUMPTION_SUCCEEDED(hr);
// Continue will resume the debuggee. If there are queued events (which we expect in this case)
// then continue will drain the event queue instead of actually resuming the process.
hr = pProc->Continue(FALSE);
- SIMPLIFYING_ASSUMPTION(SUCCEEDED(hr));
+ SIMPLIFYING_ASSUMPTION_SUCCEEDED(hr);
// This thread just needs to trigger an event dispatch. Now that it's done that, it can exit.
return 0;
@@ -833,7 +833,7 @@ HRESULT ShimProcess::HandleWin32DebugEvent(const DEBUG_EVENT * pEvent)
EX_CATCH_HRESULT(hrIgnore);
// Dont' expect errors here (but could probably return it up to become an
// unrecoverable error if necessary). We still want to call Continue thought.
- SIMPLIFYING_ASSUMPTION(SUCCEEDED(hrIgnore));
+ SIMPLIFYING_ASSUMPTION_SUCCEEDED(hrIgnore);
//
// Continue the debuggee if needed.
@@ -873,7 +873,7 @@ HRESULT ShimProcess::HandleWin32DebugEvent(const DEBUG_EVENT * pEvent)
{
::Sleep(500);
hrIgnore = GetNativePipeline()->EnsureThreadsRunning();
- SIMPLIFYING_ASSUMPTION(SUCCEEDED(hrIgnore));
+ SIMPLIFYING_ASSUMPTION_SUCCEEDED(hrIgnore);
}
}
}