summaryrefslogtreecommitdiffstats
path: root/libunwindstack/tools
diff options
context:
space:
mode:
authorDouglas Leung <douglas.leung@mips.com>2017-11-08 10:53:53 +0100
committerDejan Jovicevic <dejan.jovicevic@mips.com>2017-12-11 15:44:40 +0100
commit61b1a1ae7797e0d3177400cdb3cda028ea14669d (patch)
tree1d2d45484f749e3bb619de268e19380bc925e926 /libunwindstack/tools
parent84de4c0a892c922a79143248f00f2965c82b0903 (diff)
downloadsystem_core-61b1a1ae7797e0d3177400cdb3cda028ea14669d.tar.gz
system_core-61b1a1ae7797e0d3177400cdb3cda028ea14669d.tar.bz2
system_core-61b1a1ae7797e0d3177400cdb3cda028ea14669d.zip
Add libunwindstack support for Mips and Mips64
This patch requires v3.18 kernel or above, because v3.10 kernel has a bug (as of 8/1/2017) in the ptrace(GETREGSET) function for mips and mips64. Change-Id: I004c1fa190193eebe1c84440b366289122a6bd8a Signed-off-by: Douglas Leung <douglas.leung@mips.com> Signed-off-by: Dejan Jovicevic <dejan.jovicevic@mips.com>
Diffstat (limited to 'libunwindstack/tools')
-rw-r--r--libunwindstack/tools/unwind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libunwindstack/tools/unwind.cpp b/libunwindstack/tools/unwind.cpp
index 789627984..81bedb7d5 100644
--- a/libunwindstack/tools/unwind.cpp
+++ b/libunwindstack/tools/unwind.cpp
@@ -76,6 +76,12 @@ void DoUnwind(pid_t pid) {
case unwindstack::ARCH_X86_64:
printf("x86_64");
break;
+ case unwindstack::ARCH_MIPS:
+ printf("mips");
+ break;
+ case unwindstack::ARCH_MIPS64:
+ printf("mips64");
+ break;
default:
printf("unknown\n");
return;