Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/selftest/gdb_backtrace

    r740 r988  
    5959}
    6060
    61 #
     61need_binary="no"
     62case "${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        ;;
     73esac
     74
     75test x"${need_binary}" = x"yes" && {
     76
    6277# we first try to use /proc/${PID}/exe or /proc/{$PID}/path for solaris
    6378# then fallback to the binary from the commandline
     
    6580# 'which'
    6681#
    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        }
    7591}
    76 
    77 echo "${BASENAME}: Trying to use ${DB_BIN} on ${BINARY} on PID ${PID}"
    7892
    7993BATCHFILE_PRE=/tmp/gdb_backtrace_pre.$$
Note: See TracChangeset for help on using the changeset viewer.