summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/MacOSX-Kernel
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-14 08:55:50 +0000
committerFangrui Song <maskray@google.com>2019-05-14 08:55:50 +0000
commitefe8e7e36d01cfa19b8c405fffc3411c8c74cabf (patch)
treec606cbe8c4fbe0121d85b6d1e02ca27ed505fdf4 /lldb/source/Plugins/Process/MacOSX-Kernel
parent004393681c25e34e921adccc69ae6378090dee54 (diff)
downloadbcm5719-llvm-efe8e7e36d01cfa19b8c405fffc3411c8c74cabf.tar.gz
bcm5719-llvm-efe8e7e36d01cfa19b8c405fffc3411c8c74cabf.zip
typedef enum -> enum
Reviewed By: labath Differential Revision: https://reviews.llvm.org/D61883 llvm-svn: 360654
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel')
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
index fed6128c17f..47013c97209 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
@@ -26,7 +26,7 @@ public:
const static uint32_t kMaxPacketSize = 1200;
const static uint32_t kMaxDataSize = 1024;
typedef lldb_private::StreamBuffer<1024> PacketStreamType;
- typedef enum {
+ enum CommandType {
KDP_CONNECT = 0u,
KDP_DISCONNECT,
KDP_HOSTINFO,
@@ -59,23 +59,23 @@ public:
KDP_READMSR64,
KDP_WRITEMSR64,
KDP_DUMPINFO
- } CommandType;
+ };
enum { KDP_FEATURE_BP = (1u << 0) };
- typedef enum {
+ enum KDPError {
KDP_PROTERR_SUCCESS = 0,
KDP_PROTERR_ALREADY_CONNECTED,
KDP_PROTERR_BAD_NBYTES,
KDP_PROTERR_BADFLAVOR
- } KDPError;
+ };
- typedef enum {
+ enum PacketType {
ePacketTypeRequest = 0x00u,
ePacketTypeReply = 0x80u,
ePacketTypeMask = 0x80u,
eCommandTypeMask = 0x7fu
- } PacketType;
+ };
// Constructors and Destructors
CommunicationKDP(const char *comm_name);
OpenPOWER on IntegriCloud