Skip to content

Commit 2f7ca99

Browse files
authored
[RISC-V] Fix typo (#106613)
1 parent ca99ff4 commit 2f7ca99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/coreclr/vm/exceptionhandling.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -5426,14 +5426,14 @@ BOOL IsSafeToCallExecutionManager()
54265426

54275427
BOOL IsSafeToHandleHardwareException(PCONTEXT contextRecord, PEXCEPTION_RECORD exceptionRecord)
54285428
{
5429-
#ifdef FEATURE_EMULATE_SINGLESTEP
5429+
#ifdef FEATURE_EMULATE_SINGLESTEP
54305430
Thread *pThread = GetThreadNULLOk();
54315431
if (pThread && pThread->IsSingleStepEnabled() &&
54325432
exceptionRecord->ExceptionCode != STATUS_BREAKPOINT &&
54335433
exceptionRecord->ExceptionCode != STATUS_SINGLE_STEP &&
54345434
exceptionRecord->ExceptionCode != STATUS_STACK_OVERFLOW)
54355435
{
5436-
// tried to consolidate the code and only call HandleSingleStep here but
5436+
// tried to consolidate the code and only call HandleSingleStep here but
54375437
// for some reason not investigated the debugger tests failed with this change
54385438
pThread->HandleSingleStep(contextRecord, exceptionRecord->ExceptionCode);
54395439
}
@@ -7691,7 +7691,7 @@ size_t GetSSPForFrameOnCurrentStack(TADDR ip)
76917691
{
76927692
size_t *targetSSP = (size_t *)_rdsspq();
76937693
// The SSP we search is pointing to the return address of the frame represented
7694-
// by the passed in IP. So we search for the instruction pointer from
7694+
// by the passed in IP. So we search for the instruction pointer from
76957695
// the context and return one slot up from there.
76967696
if (targetSSP != NULL)
76977697
{
@@ -7882,7 +7882,7 @@ extern "C" void * QCALLTYPE CallCatchFunclet(QCall::ObjectHandleOnStack exceptio
78827882
pvRegDisplay->pCurrentContext->Lr = GetIP(pvRegDisplay->pCurrentContext);
78837883
#elif defined(HOST_ARM)
78847884
pvRegDisplay->pCurrentContext->Lr = GetIP(pvRegDisplay->pCurrentContext);
7885-
#elif defined(HOST_RISCV) || defined(HOST_LOONGARCH64)
7885+
#elif defined(HOST_RISCV64) || defined(HOST_LOONGARCH64)
78867886
pvRegDisplay->pCurrentContext->Ra = GetIP(pvRegDisplay->pCurrentContext);
78877887
#endif
78887888
SetIP(pvRegDisplay->pCurrentContext, (PCODE)(void (*)(Object*))PropagateExceptionThroughNativeFrames);

0 commit comments

Comments
 (0)