Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2003-06-11 21:02:46 +0400
committerDick Porter <dick@acm.org>2003-06-11 21:02:46 +0400
commit786185f8f6539dbda0b1bd0dc73af4baaa66b6b3 (patch)
treee77f8acd1623f3a3f91ffa3500a7ca4337add9d6 /web/print-stack
parent07d8828f508128adabe8c9ed0e69f4fb7635c270 (diff)
Simple script to print a stack trace and also look up all the managed
frames svn path=/trunk/mono/; revision=15320
Diffstat (limited to 'web/print-stack')
-rwxr-xr-xweb/print-stack15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/print-stack b/web/print-stack
new file mode 100755
index 00000000000..1bf79581801
--- /dev/null
+++ b/web/print-stack
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+MANAGED_CALLS=`gdb -silent $1 -pid $2 << EOF | awk '/.* in \?\? \(\)/ {printf("call print_method_from_ip(%s)\n", $2);}'
+set height 0
+thread apply all bt
+quit
+EOF`
+
+gdb -silent $1 -pid $2 << EOF
+set height 0
+thread apply all bt
+$MANAGED_CALLS
+quit
+EOF
+