From 72a1c2bde9bfc5cba3a4e85ba90c669b4f16588f Mon Sep 17 00:00:00 2001 From: Xu Liangyu Date: Wed, 4 Dec 2024 23:12:25 +0800 Subject: [PATCH] [LoongArch64] Fix the bug within RtlpUnwindFunctionFull() when dealing with the `end_c` unwind code. (#110347) --- src/coreclr/unwinder/loongarch64/unwinder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/coreclr/unwinder/loongarch64/unwinder.cpp b/src/coreclr/unwinder/loongarch64/unwinder.cpp index 2a263f0516ac96..bd28e1e9678ea8 100644 --- a/src/coreclr/unwinder/loongarch64/unwinder.cpp +++ b/src/coreclr/unwinder/loongarch64/unwinder.cpp @@ -9,6 +9,8 @@ #include "unwinder.h" +#define NOTHING + typedef struct _LOONGARCH64_KTRAP_FRAME { // @@ -975,13 +977,11 @@ Return Value: // // end_c (11100101): end of unwind code in current chained scope + // Continue unwinding parent scope. // else if (CurCode == 0xe5) { - if (AccumulatedSaveNexts != 0) { - return STATUS_UNWIND_INVALID_SEQUENCE; - } - goto finished; + NOTHING; } //