2010-01-28 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / web / print-stack
blob1bf795818013b95f13df5eea257b1b3ebadc5c30
1 #!/bin/sh
3 MANAGED_CALLS=`gdb -silent $1 -pid $2 << EOF | awk '/.* in \?\? \(\)/ {printf("call print_method_from_ip(%s)\n", $2);}'
4 set height 0
5 thread apply all bt
6 quit
7 EOF`
9 gdb -silent $1 -pid $2 << EOF
10 set height 0
11 thread apply all bt
12 $MANAGED_CALLS
13 quit
14 EOF