diff options
| author | Kate Stone <katherine.stone@apple.com> | 2016-09-06 20:57:50 +0000 |
|---|---|---|
| committer | Kate Stone <katherine.stone@apple.com> | 2016-09-06 20:57:50 +0000 |
| commit | b9c1b51e45b845debb76d8658edabca70ca56079 (patch) | |
| tree | dfcb5a13ef2b014202340f47036da383eaee74aa /lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h | |
| parent | d5aa73376966339caad04013510626ec2e42c760 (diff) | |
| download | bcm5719-llvm-b9c1b51e45b845debb76d8658edabca70ca56079.tar.gz bcm5719-llvm-b9c1b51e45b845debb76d8658edabca70ca56079.zip | |
*** This commit represents a complete reformatting of the LLDB source code
*** to conform to clang-format’s LLVM style. This kind of mass change has
*** two obvious implications:
Firstly, merging this particular commit into a downstream fork may be a huge
effort. Alternatively, it may be worth merging all changes up to this commit,
performing the same reformatting operation locally, and then discarding the
merge for this particular commit. The commands used to accomplish this
reformatting were as follows (with current working directory as the root of
the repository):
find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} +
find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ;
The version of clang-format used was 3.9.0, and autopep8 was 1.2.4.
Secondly, “blame” style tools will generally point to this commit instead of
a meaningful prior commit. There are alternatives available that will attempt
to look through this change and find the appropriate prior commit. YMMV.
llvm-svn: 280751
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h')
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h | 94 |
1 files changed, 42 insertions, 52 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h b/lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h index 3de94b86258..ad775b0d9af 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextLinux_arm64.h @@ -10,71 +10,61 @@ #ifndef liblldb_RegisterContextLinux_arm64_H_ #define liblldb_RegisterContextLinux_arm64_H_ -#include "lldb/lldb-private.h" -#include "lldb/Target/RegisterContext.h" #include "RegisterInfoInterface.h" +#include "lldb/Target/RegisterContext.h" +#include "lldb/lldb-private.h" -class RegisterContextLinux_arm64 - : public lldb_private::RegisterInfoInterface -{ +class RegisterContextLinux_arm64 : public lldb_private::RegisterInfoInterface { public: - // based on RegisterContextDarwin_arm64.h - struct GPR - { - uint64_t x[29]; // x0-x28 - uint64_t fp; // x29 - uint64_t lr; // x30 - uint64_t sp; // x31 - uint64_t pc; // pc - uint32_t cpsr; // cpsr - }; + // based on RegisterContextDarwin_arm64.h + struct GPR { + uint64_t x[29]; // x0-x28 + uint64_t fp; // x29 + uint64_t lr; // x30 + uint64_t sp; // x31 + uint64_t pc; // pc + uint32_t cpsr; // cpsr + }; - // based on RegisterContextDarwin_arm64.h - struct VReg - { - uint8_t bytes[16]; - }; + // based on RegisterContextDarwin_arm64.h + struct VReg { + uint8_t bytes[16]; + }; - // based on RegisterContextDarwin_arm64.h - struct FPU - { - VReg v[32]; - uint32_t fpsr; - uint32_t fpcr; - }; + // based on RegisterContextDarwin_arm64.h + struct FPU { + VReg v[32]; + uint32_t fpsr; + uint32_t fpcr; + }; - // based on RegisterContextDarwin_arm64.h - struct EXC - { - uint64_t far; // Virtual Fault Address - uint32_t esr; // Exception syndrome - uint32_t exception; // number of arm exception token - }; + // based on RegisterContextDarwin_arm64.h + struct EXC { + uint64_t far; // Virtual Fault Address + uint32_t esr; // Exception syndrome + uint32_t exception; // number of arm exception token + }; - // based on RegisterContextDarwin_arm64.h - struct DBG - { - uint64_t bvr[16]; - uint64_t bcr[16]; - uint64_t wvr[16]; - uint64_t wcr[16]; - uint64_t mdscr_el1; - }; + // based on RegisterContextDarwin_arm64.h + struct DBG { + uint64_t bvr[16]; + uint64_t bcr[16]; + uint64_t wvr[16]; + uint64_t wcr[16]; + uint64_t mdscr_el1; + }; - RegisterContextLinux_arm64(const lldb_private::ArchSpec &target_arch); + RegisterContextLinux_arm64(const lldb_private::ArchSpec &target_arch); - size_t - GetGPRSize() const override; + size_t GetGPRSize() const override; - const lldb_private::RegisterInfo * - GetRegisterInfo() const override; + const lldb_private::RegisterInfo *GetRegisterInfo() const override; - uint32_t - GetRegisterCount () const override; + uint32_t GetRegisterCount() const override; private: - const lldb_private::RegisterInfo *m_register_info_p; - uint32_t m_register_info_count; + const lldb_private::RegisterInfo *m_register_info_p; + uint32_t m_register_info_count; }; #endif |

