摘要: pstack.sh 改进版本#!/bin/bashif (( $# < 1 )) ; then echo "usage: `basename $0` pid" 1>&2 exit 1fi if [[ ! -r /proc/$1 ]] ; then echo "Process $1 not found." 1>&2 exit 1fi (gdb -quiet -nx /proc/$1/exe -p $1 <<EOFdefine my_dump_all_stackx \$pcbtendthread apply al 阅读全文
posted @ 2011-06-30 18:39 napoleon_liu 阅读(388) 评论(1) 推荐(0) 编辑