[SCM] Samba Shared Repository - branch master updated
Matthieu Patou
mat at samba.org
Sun Nov 28 05:33:01 MST 2010
The branch, master has been updated
via 7e2b315 add handling for solaris
from 736d36a s4:dsdb/repl/drepl* - move "lib/messaging/irpc.h" include into "drepl_service.h"
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 7e2b315ca0f228b617adc7769f3880a8aabd5d67
Author: Matthieu Patou <mat at matws.net>
Date: Sun Nov 28 13:53:40 2010 +0300
add handling for solaris
Autobuild-User: Matthieu Patou <mat at samba.org>
Autobuild-Date: Sun Nov 28 13:32:21 CET 2010 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
selftest/gdb_backtrace | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/selftest/gdb_backtrace b/selftest/gdb_backtrace
index 1d8249b..5a7d230 100755
--- a/selftest/gdb_backtrace
+++ b/selftest/gdb_backtrace
@@ -30,6 +30,12 @@ case "${UNAME}" in
OSF1)
DB_LIST="ladebug ${DB_LIST}"
;;
+ #
+ # On solaris dbx is working way more better than gdb
+ # let's try it first
+ #
+ SunOS)
+ DB_LIST="dbx ${DB_LIST}"
esac
for DB in ${DB_LIST}; do
@@ -45,12 +51,13 @@ test x"${DB_BIN}" = x"" && {
}
#
-# we first try to use /proc/${PID}/exe
+# we first try to use /proc/${PID}/exe or /proc/{$PID}/path for solaris
# then fallback to the binary from the commandline
# then we search for the commandline argument with
# 'which'
#
test -f "/proc/${PID}/exe" && BINARY="/proc/${PID}/exe"
+test -f "/proc/${PID}/path/a.out" && BINARY=`ls -l /proc/${PID}/path/a.out |sed 's/.*-> //'`
test x"${BINARY}" = x"" && BINARY="/proc/${PID}/exe"
test -f "${BINARY}" || BINARY=`which ${BINARY}`
@@ -84,5 +91,8 @@ quit
EOF
${DB_BIN} -x "${BATCHFILE_MAIN}" "${BINARY}" "${PID}"
;;
+dbx)
+ ${DB_BIN} "where;dump;kill;quit" "${BINARY}" "${PID}"
+ ;;
esac
/bin/rm -f ${BATCHFILE_PRE} ${BATCHFILE_MAIN}
--
Samba Shared Repository
More information about the samba-cvs
mailing list