diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-11-04 03:34:56 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-11-04 03:34:56 +0000 |
| commit | dce502ede0f35762ae0fb3f895c659e4fe912bf9 (patch) | |
| tree | 3a4b178f9d846db4c2e084ea055f6c77278acd60 /lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp | |
| parent | 96e0c101fe2ccbce93947c89253921b1ddcb391d (diff) | |
| download | bcm5719-llvm-dce502ede0f35762ae0fb3f895c659e4fe912bf9.tar.gz bcm5719-llvm-dce502ede0f35762ae0fb3f895c659e4fe912bf9.zip | |
Fixed the Xcode project building of LLVM to be a bit more user friendly:
- If you download and build the sources in the Xcode project, x86_64 builds
by default using the "llvm.zip" checkpointed LLVM.
- If you delete the "lldb/llvm.zip" and the "lldb/llvm" folder, and build the
Xcode project will download the right LLVM sources and build them from
scratch
- If you have a "lldb/llvm" folder already that contains a "lldb/llvm/lib"
directory, we will use the sources you have placed in the LLDB directory.
Python can now be disabled for platforms that don't support it.
Changed the way the libllvmclang.a files get used. They now all get built into
arch specific directories and never get merged into universal binaries as this
was causing issues where you would have to go and delete the file if you wanted
to build an extra architecture slice.
llvm-svn: 143678
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp index 52cb00f0e03..211dfb28452 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm.cpp @@ -25,6 +25,8 @@ #include "lldb/Host/Endian.h" #include "llvm/Support/Compiler.h" +#include "Plugins/Process/Utility/InstructionUtils.h" + // Support building against older versions of LLVM, this macro was added // recently. #ifndef LLVM_EXTENSION @@ -982,7 +984,7 @@ RegisterContextDarwin_arm::NumSupportedHardwareBreakpoints () uint32_t register_DBGDIDR; asm("mrc p14, 0, %0, c0, c0, 0" : "=r" (register_DBGDIDR)); - g_num_supported_hw_breakpoints = bits(register_DBGDIDR, 27, 24); + g_num_supported_hw_breakpoints = Bits32 (register_DBGDIDR, 27, 24); // Zero is reserved for the BRP count, so don't increment it if it is zero if (g_num_supported_hw_breakpoints > 0) g_num_supported_hw_breakpoints++; @@ -1111,7 +1113,7 @@ RegisterContextDarwin_arm::NumSupportedHardwareWatchpoints () uint32_t register_DBGDIDR; asm("mrc p14, 0, %0, c0, c0, 0" : "=r" (register_DBGDIDR)); - g_num_supported_hw_watchpoints = bits(register_DBGDIDR, 31, 28) + 1; + g_num_supported_hw_watchpoints = Bits32 (register_DBGDIDR, 31, 28) + 1; // if (log) log->Printf ("DBGDIDR=0x%8.8x (number WRP pairs = %u)", register_DBGDIDR, g_num_supported_hw_watchpoints); } return g_num_supported_hw_watchpoints; |

