case eWatchpointWrite: return m_supports_z2;
case eWatchpointRead: return m_supports_z3;
case eWatchpointReadWrite: return m_supports_z4;
+ case eStoppointInvalid: return false;
}
- return false;
}
uint8_t
SendGDBStoppointTypePacket (GDBStoppointType type, // Type of breakpoint or watchpoint
case eStopReasonExec:
reason_str = "exec";
break;
+ case eStopReasonInstrumentation:
+ case eStopReasonInvalid:
+ case eStopReasonPlanComplete:
+ case eStopReasonThreadExiting:
+ case eStopReasonNone:
+ break;
}
if (reason_str != nullptr)
{
want_hardware = true; want_breakpoint = false; break;
case eWatchpointReadWrite:
want_hardware = true; want_breakpoint = false; break;
- default:
+ case eStoppointInvalid:
return SendIllFormedResponse(packet, "Z packet had invalid software/hardware specifier");
}
}
else
{
- uint32_t watch_flags = 0x0;
- switch (stoppoint_type)
- {
- case eWatchpointWrite: watch_flags = 0x1; break;
- case eWatchpointRead: watch_flags = 0x3; break;
- case eWatchpointReadWrite: watch_flags = 0x3; break;
- }
+ uint32_t watch_flags =
+ stoppoint_type == eWatchpointWrite
+ ? watch_flags = 0x1 // Write
+ : watch_flags = 0x3; // ReadWrite
// Try to set the watchpoint.
const Error error = m_debugged_process_sp->SetWatchpoint (