From: Andrew Bartlett Date: Tue, 22 Feb 2011 01:28:33 +0000 (+1100) Subject: selftest: Improve gdb_backtrace to run in batch mode X-Git-Tag: tevent-0.9.11~382 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=985c7da604ac30e67ee4b5a829935074900d6f26;p=thirdparty%2Fsamba.git selftest: Improve gdb_backtrace to run in batch mode Following Tridge's advice, we need to have no input (/dev/null) and -batch for reliable opeation on big backtraces. We should also use --pid, and let gdb find the binary Andrew Bartlett --- diff --git a/selftest/gdb_backtrace b/selftest/gdb_backtrace index 91637ec40c8..55318141499 100755 --- a/selftest/gdb_backtrace +++ b/selftest/gdb_backtrace @@ -102,12 +102,13 @@ EOF ;; gdb) cat << EOF > ${BATCHFILE_MAIN} -set height 1000 +set height 0 bt full +thread apply all bt full info locals quit EOF - ${DB_BIN} -x "${BATCHFILE_MAIN}" "${BINARY}" "${PID}" + ${DB_BIN} -batch -x "${BATCHFILE_MAIN}" --pid "${PID}" < /dev/null ;; dbx) ${DB_BIN} "where;dump;kill;quit" "${BINARY}" "${PID}"