diff options
author | Fangrui Song <maskray@google.com> | 2019-05-14 08:55:50 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-14 08:55:50 +0000 |
commit | efe8e7e36d01cfa19b8c405fffc3411c8c74cabf (patch) | |
tree | c606cbe8c4fbe0121d85b6d1e02ca27ed505fdf4 /lldb/source/Plugins/Process/MacOSX-Kernel | |
parent | 004393681c25e34e921adccc69ae6378090dee54 (diff) | |
download | bcm5719-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.h | 12 |
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); |