src/developer/debug/debug_agent/arch_arm64_helpers.cc
uint32_t GetWatchpointWriteFlag(debug_ipc::BreakpointType type) {
  // clang-format off
  switch (type) {
    case debug_ipc::BreakpointType::kRead: return 0b01;
    case debug_ipc::BreakpointType::kReadWrite: return 0b11;
    case debug_ipc::BreakpointType::kWrite: return 0b10;
    case debug_ipc::BreakpointType::kSoftware:
    case debug_ipc::BreakpointType::kHardware:
    case debug_ipc::BreakpointType::kLast:
      break;
  }
  // clang-format on

  FXL_NOTREACHED() << "Invalid breakpoint type: " << static_cast<uint32_t>(type);
  return 0;
}
// Returns the bit flag to enable each different kind of watchpoint.
Returns the bit flag to enable each different kind of watchpoint.
Returns the bit flag to enable each different kind of watchpoint .
uint32_t GetWatchpointWriteFlag(debug_ipc::BreakpointType type) {
  switch (type) {
    case debug_ipc::BreakpointType::kRead: return 0b01;
    case debug_ipc::BreakpointType::kReadWrite: return 0b11;
    case debug_ipc::BreakpointType::kWrite: return 0b10;
    case debug_ipc::BreakpointType::kSoftware:
    case debug_ipc::BreakpointType::kHardware:
    case debug_ipc::BreakpointType::kLast:
      break;
  }
  FXL_NOTREACHED() << "Invalid breakpoint type: " << static_cast<uint32_t>(type);
  return 0;
}
uint32_t GetWatchpointWriteFlag ( debug_ipc :: BreakpointType type ) { switch ( type ) { case debug_ipc :: BreakpointType :: kRead : return 0b01 ; case debug_ipc :: BreakpointType :: kReadWrite : return 0b11 ; case debug_ipc :: BreakpointType :: kWrite : return 0b10 ; case debug_ipc :: BreakpointType :: kSoftware : case debug_ipc :: BreakpointType :: kHardware : case debug_ipc :: BreakpointType :: kLast : break ; } FXL_NOTREACHED ( ) << " " << static_cast < uint32_t > ( type ) ; return 0 ; }
Returns the bit flag to enable each different kind of watchpoint.
Returns the bit flag to enable each different kind of watchpoint .
// clang-format off // clang-format on