diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-02-24 19:17:09 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-02-24 19:17:09 +0000 |
commit | 17e3d193e185b97b603b90ba60ea1d8e18a1462a (patch) | |
tree | 372035ec5a7cd58bc0ce25b1dad32cd098097582 | |
parent | 3f4200fd9dc4cca612d327f5264c122684d8dbd9 (diff) | |
download | bcm5719-llvm-17e3d193e185b97b603b90ba60ea1d8e18a1462a.tar.gz bcm5719-llvm-17e3d193e185b97b603b90ba60ea1d8e18a1462a.zip |
linux: Use ArchSpec::GetCore and the ArchSpec::Core enums.
llvm-svn: 126406
-rw-r--r-- | lldb/source/Plugins/Process/Linux/LinuxThread.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/Linux/ProcessLinux.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/Linux/LinuxThread.cpp b/lldb/source/Plugins/Process/Linux/LinuxThread.cpp index 5c278d44893..397d31bf497 100644 --- a/lldb/source/Plugins/Process/Linux/LinuxThread.cpp +++ b/lldb/source/Plugins/Process/Linux/LinuxThread.cpp @@ -65,13 +65,13 @@ LinuxThread::GetRegisterContext() { ArchSpec arch = process.GetTarget().GetArchitecture(); - switch (arch.GetGenericCPUType()) + switch (arch.GetCore()) { default: assert(false && "CPU type not supported!"); break; - case ArchSpec::eCPU_x86_64: + case ArchSpec::eCore_x86_64_x86_64: m_reg_context_sp.reset(new RegisterContextLinux_x86_64(*this, 0)); break; } diff --git a/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp index 9939fe7d988..f62a303505a 100644 --- a/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/ProcessLinux.cpp @@ -353,14 +353,14 @@ ProcessLinux::GetSoftwareBreakpointTrapOpcode(BreakpointSite* bp_site) const uint8_t *opcode = NULL; size_t opcode_size = 0; - switch (arch.GetGenericCPUType()) + switch (arch.GetCore()) { default: assert(false && "CPU type not supported!"); break; - case ArchSpec::eCPU_i386: - case ArchSpec::eCPU_x86_64: + case ArchSpec::eCore_x86_32_i386: + case ArchSpec::eCore_x86_64_x86_64: opcode = g_i386_opcode; opcode_size = sizeof(g_i386_opcode); break; |