Loading libunwindstack/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ cc_defaults { cc_library { name: "libunwindstack", defaults: ["libunwindstack_flags"], export_include_dirs: ["include"], srcs: [ "ArmExidx.cpp", Loading libunwindstack/ArmExidx.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -21,12 +21,15 @@ #include <android-base/stringprintf.h> #include <unwindstack/Log.h> #include <unwindstack/Memory.h> #include <unwindstack/Regs.h> #include "ArmExidx.h" #include "Check.h" #include "Log.h" #include "Machine.h" #include "Memory.h" #include "Regs.h" namespace unwindstack { void ArmExidx::LogRawData() { std::string log_str("Raw Data:"); Loading Loading @@ -684,3 +687,5 @@ bool ArmExidx::Eval() { while (Decode()); return status_ == ARM_STATUS_FINISH; } } // namespace unwindstack libunwindstack/ArmExidx.h +4 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ #include <deque> namespace unwindstack { // Forward declarations. class Memory; class RegsArm; Loading Loading @@ -105,4 +107,6 @@ class ArmExidx { bool pc_set_ = false; }; } // namespace unwindstack #endif // _LIBUNWINDSTACK_ARM_EXIDX_H libunwindstack/Check.h +5 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,9 @@ #include <stdlib.h> #include "Log.h" #include <unwindstack/Log.h> namespace unwindstack { #define CHECK(assertion) \ if (__builtin_expect(!(assertion), false)) { \ Loading @@ -27,4 +29,6 @@ abort(); \ } } // namespace unwindstack #endif // _LIBUNWINDSTACK_ERROR_H libunwindstack/DwarfCfa.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -23,12 +23,15 @@ #include <android-base/stringprintf.h> #include <unwindstack/DwarfLocation.h> #include <unwindstack/Log.h> #include "DwarfCfa.h" #include "DwarfEncoding.h" #include "DwarfMemory.h" #include "DwarfError.h" #include "DwarfOp.h" #include "DwarfStructs.h" #include "Log.h" namespace unwindstack { template <typename AddressType> constexpr typename DwarfCfa<AddressType>::process_func DwarfCfa<AddressType>::kCallbackTable[64]; Loading Loading @@ -711,3 +714,5 @@ const DwarfCfaInfo::Info DwarfCfaInfo::kTable[64] = { // Explicitly instantiate DwarfCfa. template class DwarfCfa<uint32_t>; template class DwarfCfa<uint64_t>; } // namespace unwindstack Loading
libunwindstack/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ cc_defaults { cc_library { name: "libunwindstack", defaults: ["libunwindstack_flags"], export_include_dirs: ["include"], srcs: [ "ArmExidx.cpp", Loading
libunwindstack/ArmExidx.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -21,12 +21,15 @@ #include <android-base/stringprintf.h> #include <unwindstack/Log.h> #include <unwindstack/Memory.h> #include <unwindstack/Regs.h> #include "ArmExidx.h" #include "Check.h" #include "Log.h" #include "Machine.h" #include "Memory.h" #include "Regs.h" namespace unwindstack { void ArmExidx::LogRawData() { std::string log_str("Raw Data:"); Loading Loading @@ -684,3 +687,5 @@ bool ArmExidx::Eval() { while (Decode()); return status_ == ARM_STATUS_FINISH; } } // namespace unwindstack
libunwindstack/ArmExidx.h +4 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ #include <deque> namespace unwindstack { // Forward declarations. class Memory; class RegsArm; Loading Loading @@ -105,4 +107,6 @@ class ArmExidx { bool pc_set_ = false; }; } // namespace unwindstack #endif // _LIBUNWINDSTACK_ARM_EXIDX_H
libunwindstack/Check.h +5 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,9 @@ #include <stdlib.h> #include "Log.h" #include <unwindstack/Log.h> namespace unwindstack { #define CHECK(assertion) \ if (__builtin_expect(!(assertion), false)) { \ Loading @@ -27,4 +29,6 @@ abort(); \ } } // namespace unwindstack #endif // _LIBUNWINDSTACK_ERROR_H
libunwindstack/DwarfCfa.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -23,12 +23,15 @@ #include <android-base/stringprintf.h> #include <unwindstack/DwarfLocation.h> #include <unwindstack/Log.h> #include "DwarfCfa.h" #include "DwarfEncoding.h" #include "DwarfMemory.h" #include "DwarfError.h" #include "DwarfOp.h" #include "DwarfStructs.h" #include "Log.h" namespace unwindstack { template <typename AddressType> constexpr typename DwarfCfa<AddressType>::process_func DwarfCfa<AddressType>::kCallbackTable[64]; Loading Loading @@ -711,3 +714,5 @@ const DwarfCfaInfo::Info DwarfCfaInfo::kTable[64] = { // Explicitly instantiate DwarfCfa. template class DwarfCfa<uint32_t>; template class DwarfCfa<uint64_t>; } // namespace unwindstack