Refactor to use gdb printf

This commit is contained in:
Travis Cross 2014-01-21 03:52:10 +00:00
parent 6f3c2330ac
commit 1dad898301
1 changed files with 20 additions and 20 deletions

View File

@ -56,30 +56,30 @@ log1 'Generating backtrace...'
gdb "$fspath" "$core" > $btpath <<'EOF' gdb "$fspath" "$core" > $btpath <<'EOF'
set prompt set prompt
set pagination off set pagination off
echo \n\n printf "\n\n"
echo ================================================================================\n printf "================================================================================\n"
echo # GDB session generated by FS backtrace-from-core\n printf "# GDB session generated by FS backtrace-from-core\n"
echo ================================================================================\n printf "================================================================================\n"
echo \n\n printf "\n\n"
echo ================================================================================\n printf "================================================================================\n"
echo # info threads\n printf "# info threads\n"
echo ================================================================================\n printf "================================================================================\n"
info threads info threads
echo ================================================================================\n printf "================================================================================\n"
echo # bt\n printf "# bt\n"
echo ================================================================================\n printf "================================================================================\n"
bt bt
echo ================================================================================\n printf "================================================================================\n"
echo # bt full\n printf "# bt full\n"
echo ================================================================================\n printf "================================================================================\n"
bt full bt full
echo ================================================================================\n printf "================================================================================\n"
echo # thread apply all bt\n printf "# thread apply all bt\n"
echo ================================================================================\n printf "================================================================================\n"
thread apply all bt thread apply all bt
echo ================================================================================\n printf "================================================================================\n"
echo # thread apply all bt full\n printf "# thread apply all bt full\n"
echo ================================================================================\n printf "================================================================================\n"
thread apply all bt full thread apply all bt full
quit quit
EOF EOF