summaryrefslogtreecommitdiffstats
path: root/debuggerd/vfp.S
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2009-12-17 12:50:58 -0800
committerBen Cheng <bccheng@google.com>2009-12-17 12:53:06 -0800
commitbdcff7d66ef8f6602e017d03cf4ffa57bac39b92 (patch)
treebb14c4e3fb025e293da1c613467a4472e2a6879d /debuggerd/vfp.S
parentb202c54aca4d84086a4dcc0f3c0bbc02d1dd9625 (diff)
downloadcore-bdcff7d66ef8f6602e017d03cf4ffa57bac39b92.tar.gz
core-bdcff7d66ef8f6602e017d03cf4ffa57bac39b92.tar.bz2
core-bdcff7d66ef8f6602e017d03cf4ffa57bac39b92.zip
Dump VFP registers and status word when native app crashes.
Bug: 2226399 Caveat: d0/d1 appear to be clobbered by ptrace. It will be tracked by a new bug.
Diffstat (limited to 'debuggerd/vfp.S')
-rw-r--r--debuggerd/vfp.S41
1 files changed, 41 insertions, 0 deletions
diff --git a/debuggerd/vfp.S b/debuggerd/vfp.S
new file mode 100644
index 000000000..219241526
--- /dev/null
+++ b/debuggerd/vfp.S
@@ -0,0 +1,41 @@
+ .text
+ .align 2
+ .global crash
+ .type crash, %function
+crash:
+ fconstd d0, #0
+ fconstd d1, #1
+ fconstd d2, #2
+ fconstd d3, #3
+ fconstd d4, #4
+ fconstd d5, #5
+ fconstd d6, #6
+ fconstd d7, #7
+ fconstd d8, #8
+ fconstd d9, #9
+ fconstd d10, #10
+ fconstd d11, #11
+ fconstd d12, #12
+ fconstd d13, #13
+ fconstd d14, #14
+ fconstd d15, #15
+ fconstd d16, #16
+ fconstd d17, #17
+ fconstd d18, #18
+ fconstd d19, #19
+ fconstd d20, #20
+ fconstd d21, #21
+ fconstd d22, #22
+ fconstd d23, #23
+ fconstd d24, #24
+ fconstd d25, #25
+ fconstd d26, #26
+ fconstd d27, #27
+ fconstd d28, #28
+ fconstd d29, #29
+ fconstd d30, #30
+ fconstd d31, #31
+ mov r0, #0
+ str r0, [r0]
+ bx lr
+