Changeset 988 for vendor/current/selftest/gdb_backtrace
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/selftest/gdb_backtrace
r740 r988 59 59 } 60 60 61 # 61 need_binary="no" 62 case "${DB}" in 63 # These debuggers need the process binary specified: 64 ladebug) 65 need_binary="yes" 66 ;; 67 gdb66) 68 need_binary="yes" 69 ;; 70 dbx) 71 need_binary="yes" 72 ;; 73 esac 74 75 test x"${need_binary}" = x"yes" && { 76 62 77 # we first try to use /proc/${PID}/exe or /proc/{$PID}/path for solaris 63 78 # then fallback to the binary from the commandline … … 65 80 # 'which' 66 81 # 67 test -f "/proc/${PID}/exe" && BINARY="/proc/${PID}/exe" 68 test -f "/proc/${PID}/path/a.out" && BINARY=`ls -l /proc/${PID}/path/a.out |sed 's/.*-> //'` 69 test x"${BINARY}" = x"" && BINARY="/proc/${PID}/exe" 70 test -f "${BINARY}" || BINARY=`which ${BINARY}` 71 72 test -f "${BINARY}" || { 73 echo "${BASENAME}: ERROR: Cannot find binary '${BINARY}'." 74 exit 1 82 test -f "/proc/${PID}/exe" && BINARY="/proc/${PID}/exe" 83 test -f "/proc/${PID}/path/a.out" && BINARY=`ls -l /proc/${PID}/path/a.out |sed 's/.*-> //'` 84 test x"${BINARY}" = x"" && BINARY="/proc/${PID}/exe" 85 test -f "${BINARY}" || BINARY=`which ${BINARY}` 86 87 test -f "${BINARY}" || { 88 echo "${BASENAME}: ERROR: Cannot find binary '${BINARY}'." 89 exit 1 90 } 75 91 } 76 77 echo "${BASENAME}: Trying to use ${DB_BIN} on ${BINARY} on PID ${PID}"78 92 79 93 BATCHFILE_PRE=/tmp/gdb_backtrace_pre.$$
Note:
See TracChangeset
for help on using the changeset viewer.