Skip to content

Commit 3408ce1

Browse files
committed
Recognize swbreak:/hwbreak: in stop packet
mark it as a `reason:breakpoint` so the correct StopInfo is created.
1 parent 56ca564 commit 3408ce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,6 +2283,8 @@ StateType ProcessGDBRemote::SetThreadStopInfo(StringExtractor &stop_packet) {
22832283
StreamString ostr;
22842284
ostr.Printf("%" PRIu64, wp_addr);
22852285
description = std::string(ostr.GetString());
2286+
} else if (key.compare("swbreak") == 0 || key.compare("hwbreak") == 0) {
2287+
reason = "breakpoint";
22862288
} else if (key.compare("library") == 0) {
22872289
auto error = LoadModules();
22882290
if (error) {

0 commit comments

Comments
 (0)