Skip to content

Commit e4d25e9

Browse files
committed
[lldb] [Process/gdb-remote] Fix defaulting signal to invalid in action list
Fix processing of "C" packet with signal for the whole process to default signal value for action list to LLDB_INVALID_SIGNAL_NUMBER rather than 0. Differential Revision: https://reviews.llvm.org/D67625 llvm-svn: 372090
1 parent 48de660 commit e4d25e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,8 @@ GDBRemoteCommunicationServerLLGS::Handle_C(StringExtractorGDBRemote &packet) {
13831383
packet, "unexpected content after $C{signal-number}");
13841384
}
13851385

1386-
ResumeActionList resume_actions(StateType::eStateRunning, 0);
1386+
ResumeActionList resume_actions(StateType::eStateRunning,
1387+
LLDB_INVALID_SIGNAL_NUMBER);
13871388
Status error;
13881389

13891390
// We have two branches: what to do if a continue thread is specified (in
@@ -3322,4 +3323,4 @@ std::string GDBRemoteCommunicationServerLLGS::XMLEncodeAttributeValue(
33223323
}
33233324
}
33243325
return result;
3325-
}
3326+
}

0 commit comments

Comments
 (0)