Skip to content

Commit f52f1e7

Browse files
committed
[lldb][RISCV] Mark default unwind plans they couldn't be used for trap handling
After we introduced a special unwind plan for trap handling, we should mark that other unwind plans for RISC-V can't be used in the same case.
1 parent 5c6e69f commit f52f1e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ UnwindPlanSP ABISysV_riscv::CreateFunctionEntryUnwindPlan() {
735735
plan_sp->AppendRow(std::move(row));
736736
plan_sp->SetSourceName("riscv function-entry unwind plan");
737737
plan_sp->SetSourcedFromCompiler(eLazyBoolNo);
738+
plan_sp->SetUnwindPlanForSignalTrap(eLazyBoolNo);
739+
738740
return plan_sp;
739741
}
740742

@@ -761,6 +763,8 @@ UnwindPlanSP ABISysV_riscv::CreateDefaultUnwindPlan() {
761763
plan_sp->SetSourceName("riscv default unwind plan");
762764
plan_sp->SetSourcedFromCompiler(eLazyBoolNo);
763765
plan_sp->SetUnwindPlanValidAtAllInstructions(eLazyBoolNo);
766+
plan_sp->SetUnwindPlanForSignalTrap(eLazyBoolNo);
767+
764768
return plan_sp;
765769
}
766770

0 commit comments

Comments
 (0)