summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
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
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')
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h12
-rw-r--r--lldb/source/Plugins/Process/Utility/ARMDefines.h4
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h4
-rw-r--r--lldb/source/Plugins/Process/mach-core/ProcessMachCore.h5
4 files changed, 11 insertions, 14 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);
diff --git a/lldb/source/Plugins/Process/Utility/ARMDefines.h b/lldb/source/Plugins/Process/Utility/ARMDefines.h
index 87f77b93299..1f7eb54d10e 100644
--- a/lldb/source/Plugins/Process/Utility/ARMDefines.h
+++ b/lldb/source/Plugins/Process/Utility/ARMDefines.h
@@ -19,14 +19,14 @@
namespace lldb_private {
// ARM shifter types
-typedef enum {
+enum ARM_ShifterType {
SRType_LSL,
SRType_LSR,
SRType_ASR,
SRType_ROR,
SRType_RRX,
SRType_Invalid
-} ARM_ShifterType;
+};
// ARM conditions // Meaning (integer) Meaning (floating-point)
// Condition flags
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
index e3dc9d2d1d7..bb777a5c26a 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
@@ -29,14 +29,14 @@
namespace lldb_private {
namespace process_gdb_remote {
-typedef enum {
+enum GDBStoppointType {
eStoppointInvalid = -1,
eBreakpointSoftware = 0,
eBreakpointHardware,
eWatchpointWrite,
eWatchpointRead,
eWatchpointReadWrite
-} GDBStoppointType;
+};
enum class CompressionType {
None = 0, // no compression
diff --git a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h
index 3e446f67e12..e6b1256b11a 100644
--- a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h
+++ b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h
@@ -88,10 +88,7 @@ protected:
private:
bool GetDynamicLoaderAddress(lldb::addr_t addr);
- typedef enum CorefilePreference {
- eUserProcessCorefile,
- eKernelCorefile
- } CorefilePreferences;
+ enum CorefilePreference { eUserProcessCorefile, eKernelCorefile };
/// If a core file can be interpreted multiple ways, this establishes
/// which style wins.
OpenPOWER on IntegriCloud