Skip to content

Commit 8bf0011

Browse files
committed
Add SI_KERNEL into the description as well.
1 parent 157b5a5 commit 8bf0011

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lldb/source/Host/common/NativeProcessProtocol.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ void NativeProcessProtocol::NotifyDidExec() {
340340

341341
Status NativeProcessProtocol::SetSoftwareBreakpoint(lldb::addr_t addr,
342342
uint32_t size_hint) {
343+
344+
volatile bool debug = true;
345+
while (debug) {}
343346
Log *log = GetLog(LLDBLog::Breakpoints);
344347
LLDB_LOG(log, "addr = {0:x}, size_hint = {1}", addr, size_hint);
345348

@@ -362,9 +365,10 @@ Status NativeProcessProtocol::RemoveSoftwareBreakpoint(lldb::addr_t addr) {
362365
auto it = m_software_breakpoints.find(addr);
363366
if (it == m_software_breakpoints.end())
364367
return Status::FromErrorString("Breakpoint not found.");
365-
assert(it->second.ref_count > 0);
366-
if (--it->second.ref_count > 0)
368+
if (it->second.ref_count > 0) {
369+
--it->second.ref_count;
367370
return Status();
371+
}
368372

369373
// This is the last reference. Let's remove the breakpoint.
370374
Status error;

0 commit comments

Comments
 (0)