diff options
Diffstat (limited to 'src/debug/di/breakpoint.cpp')
-rw-r--r-- | src/debug/di/breakpoint.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/debug/di/breakpoint.cpp b/src/debug/di/breakpoint.cpp index e3e4fb04a5..cc55060fa8 100644 --- a/src/debug/di/breakpoint.cpp +++ b/src/debug/di/breakpoint.cpp @@ -57,9 +57,11 @@ HRESULT CordbBreakpoint::BaseIsActive(BOOL *pbActive) * ------------------------------------------------------------------------- */ CordbFunctionBreakpoint::CordbFunctionBreakpoint(CordbCode *code, - SIZE_T offset) + SIZE_T offset, + BOOL offsetIsIl) : CordbBreakpoint(code->GetProcess(), CBT_FUNCTION), - m_code(code), m_offset(offset) + m_code(code), m_offset(offset), + m_offsetIsIl(offsetIsIl) { // Remember the app domain we came from so that breakpoints can be // deactivated from within the ExitAppdomain callback. @@ -203,11 +205,11 @@ HRESULT CordbFunctionBreakpoint::Activate(BOOL fActivate) pEvent->BreakpointData.vmDomainFile = m_code->GetModule()->GetRuntimeDomainFile(); pEvent->BreakpointData.encVersion = m_code->GetVersion(); - BOOL fIsIL = m_code->IsIL(); + BOOL codeIsIL = m_code->IsIL(); - pEvent->BreakpointData.isIL = fIsIL ? true : false; + pEvent->BreakpointData.isIL = m_offsetIsIl; pEvent->BreakpointData.offset = m_offset; - if (fIsIL) + if (codeIsIL) { pEvent->BreakpointData.nativeCodeMethodDescToken = pEvent->BreakpointData.nativeCodeMethodDescToken.NullPtr(); } |