Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca94f65e authored by Christopher Ferris's avatar Christopher Ferris Committed by Gerrit Code Review
Browse files

Merge "Make the library usable as a library."

parents 5be05733 d226a514
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ cc_defaults {
cc_library {
    name: "libunwindstack",
    defaults: ["libunwindstack_flags"],
    export_include_dirs: ["include"],

    srcs: [
        "ArmExidx.cpp",
+8 −3
Original line number Diff line number Diff line
@@ -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:");
@@ -684,3 +687,5 @@ bool ArmExidx::Eval() {
  while (Decode());
  return status_ == ARM_STATUS_FINISH;
}

}  // namespace unwindstack
+4 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@

#include <deque>

namespace unwindstack {

// Forward declarations.
class Memory;
class RegsArm;
@@ -105,4 +107,6 @@ class ArmExidx {
  bool pc_set_ = false;
};

}  // namespace unwindstack

#endif  // _LIBUNWINDSTACK_ARM_EXIDX_H
+5 −1
Original line number Diff line number Diff line
@@ -19,7 +19,9 @@

#include <stdlib.h>

#include "Log.h"
#include <unwindstack/Log.h>

namespace unwindstack {

#define CHECK(assertion)                                   \
  if (__builtin_expect(!(assertion), false)) {             \
@@ -27,4 +29,6 @@
    abort();                                               \
  }

}  // namespace unwindstack

#endif  // _LIBUNWINDSTACK_ERROR_H
+8 −3
Original line number Diff line number Diff line
@@ -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];
@@ -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