typedef fixups, patch from Jean-Daniel Dupas.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107794 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectThread.cpp b/source/Commands/CommandObjectThread.cpp
index 0fd53fe..9738758 100644
--- a/source/Commands/CommandObjectThread.cpp
+++ b/source/Commands/CommandObjectThread.cpp
@@ -332,7 +332,7 @@
};
-typedef enum StepScope
+enum StepScope
{
eStepScopeSource,
eStepScopeInstruction
diff --git a/source/Host/macosx/Host.mm b/source/Host/macosx/Host.mm
index 0e1410e..4aee444 100644
--- a/source/Host/macosx/Host.mm
+++ b/source/Host/macosx/Host.mm
@@ -213,7 +213,7 @@
::pthread_key_create (&g_thread_create_key, MacOSXDarwinThread::PThreadDestructor);
}
-typedef struct HostThreadCreateInfo
+struct HostThreadCreateInfo
{
std::string thread_name;
thread_func_t thread_fptr;
@@ -503,7 +503,7 @@
return false;
}
-typedef struct MonitorInfo
+struct MonitorInfo
{
int handle;
pthread_t thread;
diff --git a/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_i386.cpp b/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_i386.cpp
index 03b5c2a..d3ba88b 100644
--- a/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_i386.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_i386.cpp
@@ -166,7 +166,7 @@
std::pair<lldb::addr_t, lldb::addr_t> fp_pc_pair;
- typedef struct Frame_i386
+ struct Frame_i386
{
uint32_t fp;
uint32_t pc;
diff --git a/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_x86_64.cpp b/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_x86_64.cpp
index 7eaa8f4..2d11d5b 100644
--- a/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_x86_64.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/MacOSX/MachThreadContext_x86_64.cpp
@@ -179,7 +179,7 @@
std::pair<lldb::addr_t, lldb::addr_t> fp_pc_pair;
- typedef struct Frame_x86_64
+ struct Frame_x86_64
{
uint64_t fp;
uint64_t pc;
diff --git a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h
index 0305a19..8ed25cf 100644
--- a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h
+++ b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h
@@ -164,7 +164,7 @@
protected:
- typedef enum
+ enum
{
GPRRegSet = 1,
FPURegSet = 2,
diff --git a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_x86_64.h b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_x86_64.h
index 4f33bbd..47ca187 100644
--- a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_x86_64.h
+++ b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_x86_64.h
@@ -132,7 +132,7 @@
protected:
- typedef enum
+ enum
{
GPRRegSet = 4,
FPURegSet = 5,
diff --git a/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp b/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
index 586e3d7..1605a75 100644
--- a/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
+++ b/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
@@ -80,7 +80,7 @@
std::pair<lldb::addr_t, lldb::addr_t> fp_pc_pair;
- typedef struct Frame_i386
+ struct Frame_i386
{
uint32_t fp;
uint32_t pc;
@@ -168,7 +168,7 @@
std::pair<lldb::addr_t, lldb::addr_t> fp_pc_pair;
- typedef struct Frame_x86_64
+ struct Frame_x86_64
{
uint64_t fp;
uint64_t pc;
diff --git a/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.h b/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.h
index 86ba6e7..435fda4 100644
--- a/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.h
+++ b/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.h
@@ -53,7 +53,7 @@
protected:
friend class RegisterContextMacOSXFrameBackchain;
- typedef struct Cursor
+ struct Cursor
{
lldb::addr_t pc; // Program counter
lldb::addr_t fp; // Frame pointer for us with backchain