[Lldb-commits] [lldb] r115563 - in /lldb/trunk/source/Plugins/Process/Utility: ArchDefaultUnwindPlan-x86.cpp ArchVolatileRegs-x86.cpp
Chris Lattner
sabre at nondot.org
Mon Oct 4 14:24:01 PDT 2010
Author: lattner
Date: Mon Oct 4 16:24:01 2010
New Revision: 115563
URL: http://llvm.org/viewvc/llvm-project?rev=115563&view=rev
Log:
Use the LLVM Macho.h header instead of relying on the system one,
patch by Arvid Picciani!
Modified:
lldb/trunk/source/Plugins/Process/Utility/ArchDefaultUnwindPlan-x86.cpp
lldb/trunk/source/Plugins/Process/Utility/ArchVolatileRegs-x86.cpp
Modified: lldb/trunk/source/Plugins/Process/Utility/ArchDefaultUnwindPlan-x86.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/ArchDefaultUnwindPlan-x86.cpp?rev=115563&r1=115562&r2=115563&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/ArchDefaultUnwindPlan-x86.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/ArchDefaultUnwindPlan-x86.cpp Mon Oct 4 16:24:01 2010
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
#include "ArchDefaultUnwindPlan-x86.h"
-
+#include "llvm/Support/MachO.h"
#include "lldb/lldb-private.h"
#include "lldb/Utility/ArchDefaultUnwindPlan.h"
#include "lldb/Core/ArchSpec.h"
@@ -21,11 +21,11 @@
lldb_private::UnwindPlan*
ArchDefaultUnwindPlan_x86::GetArchDefaultUnwindPlan (Thread& thread, Address current_pc)
{
- if (m_cpu == CPU_TYPE_X86_64)
+ if (m_cpu == llvm::MachO::CPUTypeX86_64)
{
return &m_64bit_default;
}
- if (m_cpu == CPU_TYPE_I386)
+ if (m_cpu == llvm::MachO::CPUTypeI386)
{
return &m_32bit_default;
}
@@ -36,7 +36,7 @@
ArchDefaultUnwindPlan_x86::CreateInstance (const lldb_private::ArchSpec &arch)
{
uint32_t cpu = arch.GetCPUType ();
- if (cpu != CPU_TYPE_X86_64 && cpu != CPU_TYPE_I386)
+ if (cpu != llvm::MachO::CPUTypeX86_64 && cpu != llvm::MachO::CPUTypeI386)
return NULL;
return new ArchDefaultUnwindPlan_x86 (cpu);
Modified: lldb/trunk/source/Plugins/Process/Utility/ArchVolatileRegs-x86.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/ArchVolatileRegs-x86.cpp?rev=115563&r1=115562&r2=115563&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/ArchVolatileRegs-x86.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/ArchVolatileRegs-x86.cpp Mon Oct 4 16:24:01 2010
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
#include "ArchVolatileRegs-x86.h"
-
+#include "llvm/Support/MachO.h"
#include "lldb/lldb-private.h"
#include "lldb/Utility/ArchVolatileRegs.h"
#include "lldb/Core/ArchSpec.h"
@@ -35,7 +35,7 @@
ArchVolatileRegs_x86::CreateInstance (const lldb_private::ArchSpec &arch)
{
uint32_t cpu = arch.GetCPUType ();
- if (cpu != CPU_TYPE_X86_64 && cpu != CPU_TYPE_I386)
+ if (cpu != llvm::MachO::CPUTypeX86_64 && cpu != llvm::MachO::CPUTypeI386)
return NULL;
return new ArchVolatileRegs_x86 (cpu);
@@ -78,7 +78,7 @@
const char **names;
int namecount;
- if (m_cpu == CPU_TYPE_X86_64)
+ if (m_cpu == llvm::MachO::CPUTypeX86_64)
{
names = x86_64_regnames;
namecount = sizeof (x86_64_regnames) / sizeof (char *);
More information about the lldb-commits
mailing list