Development: Mips64 stack-core test

Add a test for Mips64 stack-core.

Bug: 21555893
Change-Id: I2d6feba9bde3977cabc5e771bf14c55de1fbff53
diff --git a/scripts/example_crashes.py b/scripts/example_crashes.py
index 745a19e..4b8b6b5 100755
--- a/scripts/example_crashes.py
+++ b/scripts/example_crashes.py
@@ -112,6 +112,33 @@
     #06 pc 00013198  /system/lib/libc.so (__start_thread+36)
 """
 
+mips64 = """
+Build fingerprint: 'Android/aosp_mips64/generic_mips64:5.1.51/AOSP/agampe05040015:userdebug/test-keys'
+Revision: '1'
+ABI: 'mips64'
+pid: 342, tid: 342, name: crasher64  >>> crasher64 <<<
+signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
+ zr 0000000000000000  at 0000000000000001  v0 0000000000000000  v1 000000ffec1c6528
+ a0 0000000000000156  a1 0000000000000156  a2 0000000000000006  a3 0000000000000000
+ a4 000000000000ffff  a5 fffffffffffffffc  a6 0000000000000000  a7 0000000000000001
+ t0 0000000000000001  t1 0000000000000000  t2 0000000000000001  t3 0000000000000001
+ s0 0000000000000002  s1 000000ffec1c6538  s2 000000ffec1c6478  s3 0000000000000006
+ s4 0000000000100000  s5 000000fff1d44f98  s6 000000fff186c488  s7 0000000000000000
+ t8 ffffffffffff0000  t9 000000ffec01c2a0  k0 0000000000000000  k1 0000000000000000
+ gp 000000ffec0a6680  sp 000000ffff8c7150  s8 0000000000100206  ra 000000ffec016684
+ hi 0000000000000000  lo 0000000000000000 bva 000000ffffffe010 epc 000000ffec01c2a8
+
+backtrace:
+    #00 pc 00000000000832a8  /system/lib64/libc.so (tgkill+8)
+    #01 pc 000000000007d684  /system/lib64/libc.so (pthread_kill+116)
+    #02 pc 000000000002dd78  /system/lib64/libc.so (raise+56)
+    #03 pc 000000000002684c  /system/lib64/libc.so (abort+92)
+    #04 pc 000000000000199c  /system/xbin/crasher64
+    #05 pc 000000000002595c  /system/lib64/libc.so (__libc_init+140)
+    #06 pc 0000000000000fd4  /system/xbin/crasher64
+    #07 pc 0000000000000f80  /system/xbin/crasher64
+"""
+
 x86 = """
 Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
 Revision: '0'
diff --git a/scripts/stack_core.py b/scripts/stack_core.py
index 5a6fd48..2d055f0 100755
--- a/scripts/stack_core.py
+++ b/scripts/stack_core.py
@@ -273,6 +273,9 @@
   def test_mips_registers(self):
     self.assert_register_matches("mips", example_crashes.mips, '\\b(zr|a0|t0|t4|s0|s4|t8|gp|hi)\\b')
 
+  def test_mips64_registers(self):
+    self.assert_register_matches("mips64", example_crashes.mips64, '\\b(zr|a0|a4|t0|s0|s4|t8|gp|hi)\\b')
+
   def test_x86_registers(self):
     self.assert_register_matches("x86", example_crashes.x86, '\\b(eax|esi|xcs|eip)\\b')