]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Refactor to use gdb printf
authorTravis Cross <tc@traviscross.com>
Tue, 21 Jan 2014 03:52:10 +0000 (03:52 +0000)
committerTravis Cross <tc@traviscross.com>
Tue, 21 Jan 2014 07:09:32 +0000 (07:09 +0000)
scripts/backtrace-from-core

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