Skip to content

Commit a2abeb1

Browse files
committed
Fix coding standards in PlatformLinux, remove sinoinfo=0
1 parent 503e58a commit a2abeb1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)