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/Windows/MiniDump/x86 | |
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/Windows/MiniDump/x86')
-rw-r--r-- | lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.cpp | 45 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.h | 27 |
2 files changed, 34 insertions, 38 deletions
diff --git a/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.cpp b/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.cpp index 2c8a069c537..c34a1335b36 100644 --- a/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.cpp +++ b/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.cpp @@ -7,41 +7,36 @@ // //===----------------------------------------------------------------------===// -#include "lldb/lldb-private-types.h" #include "lldb/Host/windows/windows.h" +#include "lldb/lldb-private-types.h" #include "RegisterContextWindowsMiniDump_x86.h" using namespace lldb; -namespace lldb_private -{ - -RegisterContextWindowsMiniDump_x86::RegisterContextWindowsMiniDump_x86(Thread &thread, uint32_t concrete_frame_idx, const CONTEXT *context) - : RegisterContextWindows_x86(thread, concrete_frame_idx) -{ - if (context) - { - m_context = *context; - m_context_stale = false; - } -} +namespace lldb_private { -RegisterContextWindowsMiniDump_x86::~RegisterContextWindowsMiniDump_x86() -{ +RegisterContextWindowsMiniDump_x86::RegisterContextWindowsMiniDump_x86( + Thread &thread, uint32_t concrete_frame_idx, const CONTEXT *context) + : RegisterContextWindows_x86(thread, concrete_frame_idx) { + if (context) { + m_context = *context; + m_context_stale = false; + } } -bool -RegisterContextWindowsMiniDump_x86::WriteRegister(const RegisterInfo * /* reg_info */, const RegisterValue & /* reg_value */) -{ - return false; +RegisterContextWindowsMiniDump_x86::~RegisterContextWindowsMiniDump_x86() {} + +bool RegisterContextWindowsMiniDump_x86::WriteRegister( + const RegisterInfo * /* reg_info */, + const RegisterValue & /* reg_value */) { + return false; } -bool -RegisterContextWindowsMiniDump_x86::CacheAllRegisterValues() -{ - // Since this is post-mortem debugging, we either have the context or we don't. - return !m_context_stale; +bool RegisterContextWindowsMiniDump_x86::CacheAllRegisterValues() { + // Since this is post-mortem debugging, we either have the context or we + // don't. + return !m_context_stale; } -} // namespace lldb_private +} // namespace lldb_private diff --git a/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.h b/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.h index d36e0cfd9e7..2754dcfb03a 100644 --- a/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.h +++ b/lldb/source/Plugins/Process/Windows/MiniDump/x86/RegisterContextWindowsMiniDump_x86.h @@ -1,4 +1,5 @@ -//===-- RegisterContextWindowsMiniDump_x86.h ------------------------*- C++ -*-===// +//===-- RegisterContextWindowsMiniDump_x86.h ------------------------*- C++ +//-*-===// // // The LLVM Compiler Infrastructure // @@ -10,27 +11,27 @@ #ifndef liblldb_RegisterContextWindowsMiniDump_x86_H_ #define liblldb_RegisterContextWindowsMiniDump_x86_H_ -#include "lldb/lldb-forward.h" #include "Plugins/Process/Windows/Common/x86/RegisterContextWindows_x86.h" +#include "lldb/lldb-forward.h" -namespace lldb_private -{ +namespace lldb_private { class Thread; -class RegisterContextWindowsMiniDump_x86 : public RegisterContextWindows_x86 -{ - public: - RegisterContextWindowsMiniDump_x86(Thread &thread, uint32_t concrete_frame_idx, const CONTEXT *context); +class RegisterContextWindowsMiniDump_x86 : public RegisterContextWindows_x86 { +public: + RegisterContextWindowsMiniDump_x86(Thread &thread, + uint32_t concrete_frame_idx, + const CONTEXT *context); - virtual ~RegisterContextWindowsMiniDump_x86(); + virtual ~RegisterContextWindowsMiniDump_x86(); - bool WriteRegister(const RegisterInfo *reg_info, const RegisterValue ®_value) override; + bool WriteRegister(const RegisterInfo *reg_info, + const RegisterValue ®_value) override; - protected: - bool CacheAllRegisterValues() override; +protected: + bool CacheAllRegisterValues() override; }; - } #endif // #ifndef liblldb_RegisterContextWindowsMiniDump_x86_H_ |