diff options
author | Tamas Berghammer <tberghammer@google.com> | 2016-01-11 10:39:09 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2016-01-11 10:39:09 +0000 |
commit | e85e6021f040e399203883a78c53b1617053e141 (patch) | |
tree | 8b0100d01afce26ba27e0c60a71aea85253f4179 /lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h | |
parent | 625e51d7a5e90b85a242e234550aedc2d659795a (diff) | |
download | bcm5719-llvm-e85e6021f040e399203883a78c53b1617053e141.tar.gz bcm5719-llvm-e85e6021f040e399203883a78c53b1617053e141.zip |
Make the aarch64 lldb-server capable of debugging arm32 applications
Differential revision: http://reviews.llvm.org/D15533
llvm-svn: 257322
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h index 611b36ad4db..34956497042 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#if defined(__arm__) // arm register context only needed on arm devices +#if defined(__arm__) || defined(__arm64__) || defined(__aarch64__) #ifndef lldb_NativeRegisterContextLinux_arm_h #define lldb_NativeRegisterContextLinux_arm_h @@ -91,11 +91,23 @@ namespace process_linux { protected: Error + DoReadRegisterValue(uint32_t offset, + const char* reg_name, + uint32_t size, + RegisterValue &value) override; + + Error DoWriteRegisterValue(uint32_t offset, const char* reg_name, const RegisterValue &value) override; Error + DoReadGPR(void *buf, size_t buf_size) override; + + Error + DoWriteGPR(void *buf, size_t buf_size) override; + + Error DoReadFPR(void *buf, size_t buf_size) override; Error @@ -182,4 +194,4 @@ namespace process_linux { #endif // #ifndef lldb_NativeRegisterContextLinux_arm_h -#endif // defined(__arm__) +#endif // defined(__arm__) || defined(__arm64__) || defined(__aarch64__) |