DebugServer2
Loading...
Searching...
No Matches
Base.h
1//
2// Copyright (c) 2014-present, Facebook, Inc.
3// All rights reserved.
4//
5// This source code is licensed under the University of Illinois/NCSA Open
6// Source License found in the LICENSE file in the root directory of this
7// source tree. An additional grant of patent rights can be found in the
8// PATENTS file in the same directory.
9//
10
11#pragma once
12
13#include "DebugServer2/Types.h"
14
15namespace ds2 {
16namespace GDBRemote {
17
18enum CompatibilityMode {
19 kCompatibilityModeGDB,
20 kCompatibilityModeGDBMultiprocess,
21 kCompatibilityModeLLDB,
22 // This is a special case for GDBRemote::ProcessThreadId::encode,
23 // don't use it anywhere else!
24 kCompatibilityModeLLDBThread
25};
26
27enum AttachMode { kAttachNow, kAttachAndWait, kAttachOrWait };
28
29enum BreakpointType : unsigned {
30 kSoftwareBreakpoint = 0,
31 kHardwareBreakpoint = 1,
32 kWriteWatchpoint = 2,
33 kReadWatchpoint = 3,
34 kAccessWatchpoint = 4,
35 kBreakpointTypeMax = 5
36};
37} // namespace GDBRemote
38} // namespace ds2