File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
lldb/source/Plugins/Platform/Linux Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -490,10 +490,6 @@ static std::string GetDescriptionFromSiginfo(lldb::ValueObjectSP siginfo_sp) {
490490 int code = siginfo_sp->GetChildMemberWithName (" si_code" )->GetValueAsSigned (0 );
491491 int signo =
492492 siginfo_sp->GetChildMemberWithName (" si_signo" )->GetValueAsSigned (-1 );
493- // si_code = 0 is SI_NOINFO, we just want the description with nothing
494- // important
495- if (code == 0 )
496- return linux_signals.GetSignalDescription (signo, code);
497493
498494 auto sifields = siginfo_sp->GetChildMemberWithName (" _sifields" );
499495 if (!sifields)
@@ -584,8 +580,8 @@ lldb::StopInfoSP PlatformLinux::GetStopInfoFromSiginfo(Thread &thread) {
584580 if (siginfo_description.empty ())
585581 return StopInfo::CreateStopReasonWithSignal (
586582 thread, signo_sp->GetValueAsUnsigned (-1 ));
587- else
588- return StopInfo::CreateStopReasonWithSignal (
589- thread, signo_sp->GetValueAsUnsigned (-1 ), siginfo_description.c_str (),
590- sicode_sp->GetValueAsUnsigned (0 ));
583+
584+ return StopInfo::CreateStopReasonWithSignal (
585+ thread, signo_sp->GetValueAsUnsigned (-1 ), siginfo_description.c_str (),
586+ sicode_sp->GetValueAsUnsigned (0 ));
591587}
You can’t perform that action at this time.
0 commit comments