mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
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
This commit is contained in:
parent
6c1ce36ec9
commit
985c7da604
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user