summaryrefslogtreecommitdiff
path: root/libunwindstack/tools/unwind.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-08-26 00:02:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-26 00:02:46 +0000
commit75a40988c0e7a35f2663b644989ce012b66f4586 (patch)
tree2e40cac43676143ffa2d2793fdc87aa7ee5807e4 /libunwindstack/tools/unwind.cpp
parent54a28300b790dbbb165563bca0720939b5157864 (diff)
parent0953ecd03a90350117d6881c55959c6644972b79 (diff)
Merge "libunwindstack: make machine type a property of Regs."
Diffstat (limited to 'libunwindstack/tools/unwind.cpp')
-rw-r--r--libunwindstack/tools/unwind.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libunwindstack/tools/unwind.cpp b/libunwindstack/tools/unwind.cpp
index 642105ada..c1077f8b6 100644
--- a/libunwindstack/tools/unwind.cpp
+++ b/libunwindstack/tools/unwind.cpp
@@ -62,8 +62,7 @@ void DoUnwind(pid_t pid) {
return;
}
- uint32_t machine_type;
- unwindstack::Regs* regs = unwindstack::Regs::RemoteGet(pid, &machine_type);
+ unwindstack::Regs* regs = unwindstack::Regs::RemoteGet(pid);
if (regs == nullptr) {
printf("Unable to get remote reg data\n");
return;
@@ -71,7 +70,7 @@ void DoUnwind(pid_t pid) {
bool bits32 = true;
printf("ABI: ");
- switch (machine_type) {
+ switch (regs->MachineType()) {
case EM_ARM:
printf("arm");
break;