print-stack 263 B

123456789101112131415
  1. #!/bin/sh
  2. MANAGED_CALLS=`gdb -silent $1 -pid $2 << EOF | awk '/.* in \?\? \(\)/ {printf("call print_method_from_ip(%s)\n", $2);}'
  3. set height 0
  4. thread apply all bt
  5. quit
  6. EOF`
  7. gdb -silent $1 -pid $2 << EOF
  8. set height 0
  9. thread apply all bt
  10. $MANAGED_CALLS
  11. quit
  12. EOF