@@ -48,27 +48,27 @@ void LogThreadStopInfo(Log &log, const ThreadStopInfo &stop_info,
4848 return ;
4949 case eStopReasonTrace:
5050 log.Printf (" %s: %s trace, stopping signal 0x%" PRIx32, __FUNCTION__, header,
51- stop_info.details . signal . signo );
51+ stop_info.signo );
5252 return ;
5353 case eStopReasonBreakpoint:
5454 log.Printf (" %s: %s breakpoint, stopping signal 0x%" PRIx32, __FUNCTION__,
55- header, stop_info.details . signal . signo );
55+ header, stop_info.signo );
5656 return ;
5757 case eStopReasonWatchpoint:
5858 log.Printf (" %s: %s watchpoint, stopping signal 0x%" PRIx32, __FUNCTION__,
59- header, stop_info.details . signal . signo );
59+ header, stop_info.signo );
6060 return ;
6161 case eStopReasonSignal:
6262 log.Printf (" %s: %s signal 0x%02" PRIx32, __FUNCTION__, header,
63- stop_info.details . signal . signo );
63+ stop_info.signo );
6464 return ;
6565 case eStopReasonException:
6666 log.Printf (" %s: %s exception type 0x%02" PRIx64, __FUNCTION__, header,
6767 stop_info.details .exception .type );
6868 return ;
6969 case eStopReasonExec:
7070 log.Printf (" %s: %s exec, stopping signal 0x%" PRIx32, __FUNCTION__, header,
71- stop_info.details . signal . signo );
71+ stop_info.signo );
7272 return ;
7373 case eStopReasonPlanComplete:
7474 log.Printf (" %s: %s plan complete" , __FUNCTION__, header);
@@ -285,7 +285,7 @@ void NativeThreadLinux::SetStoppedBySignal(uint32_t signo,
285285 SetStopped ();
286286
287287 m_stop_info.reason = StopReason::eStopReasonSignal;
288- m_stop_info.details . signal . signo = signo;
288+ m_stop_info.signo = signo;
289289
290290 m_stop_description.clear ();
291291 if (info) {
@@ -371,7 +371,7 @@ bool NativeThreadLinux::IsStopped(int *signo) {
371371 // If we are stopped by a signal, return the signo.
372372 if (signo && m_state == StateType::eStateStopped &&
373373 m_stop_info.reason == StopReason::eStopReasonSignal) {
374- *signo = m_stop_info.details . signal . signo ;
374+ *signo = m_stop_info.signo ;
375375 }
376376
377377 // Regardless, we are stopped.
@@ -398,14 +398,14 @@ void NativeThreadLinux::SetStoppedByExec() {
398398 SetStopped ();
399399
400400 m_stop_info.reason = StopReason::eStopReasonExec;
401- m_stop_info.details . signal . signo = SIGSTOP;
401+ m_stop_info.signo = SIGSTOP;
402402}
403403
404404void NativeThreadLinux::SetStoppedByBreakpoint () {
405405 SetStopped ();
406406
407407 m_stop_info.reason = StopReason::eStopReasonBreakpoint;
408- m_stop_info.details . signal . signo = SIGTRAP;
408+ m_stop_info.signo = SIGTRAP;
409409 m_stop_description.clear ();
410410}
411411
@@ -434,7 +434,7 @@ void NativeThreadLinux::SetStoppedByWatchpoint(uint32_t wp_index) {
434434 m_stop_description = ostr.str ();
435435
436436 m_stop_info.reason = StopReason::eStopReasonWatchpoint;
437- m_stop_info.details . signal . signo = SIGTRAP;
437+ m_stop_info.signo = SIGTRAP;
438438}
439439
440440bool NativeThreadLinux::IsStoppedAtBreakpoint () {
@@ -451,14 +451,15 @@ void NativeThreadLinux::SetStoppedByTrace() {
451451 SetStopped ();
452452
453453 m_stop_info.reason = StopReason::eStopReasonTrace;
454- m_stop_info.details . signal . signo = SIGTRAP;
454+ m_stop_info.signo = SIGTRAP;
455455}
456456
457457void NativeThreadLinux::SetStoppedByFork (bool is_vfork, lldb::pid_t child_pid) {
458458 SetStopped ();
459459
460460 m_stop_info.reason =
461461 is_vfork ? StopReason::eStopReasonVFork : StopReason::eStopReasonFork;
462+ m_stop_info.signo = SIGTRAP;
462463 m_stop_info.details .fork .child_pid = child_pid;
463464 m_stop_info.details .fork .child_tid = child_pid;
464465}
@@ -467,21 +468,22 @@ void NativeThreadLinux::SetStoppedByVForkDone() {
467468 SetStopped ();
468469
469470 m_stop_info.reason = StopReason::eStopReasonVForkDone;
471+ m_stop_info.signo = SIGTRAP;
470472}
471473
472474void NativeThreadLinux::SetStoppedWithNoReason () {
473475 SetStopped ();
474476
475477 m_stop_info.reason = StopReason::eStopReasonNone;
476- m_stop_info.details . signal . signo = 0 ;
478+ m_stop_info.signo = 0 ;
477479}
478480
479481void NativeThreadLinux::SetStoppedByProcessorTrace (
480482 llvm::StringRef description) {
481483 SetStopped ();
482484
483485 m_stop_info.reason = StopReason::eStopReasonProcessorTrace;
484- m_stop_info.details . signal . signo = 0 ;
486+ m_stop_info.signo = 0 ;
485487 m_stop_description = description.str ();
486488}
487489
0 commit comments