Multiplay Labs

tech hits and tips from Multiplay

gdb logging useful for large backtraces

without comments

If your trying to output a large backtrace like those generated via kernel panics the following can be quite useful:-
set logging redirect on

(gdb) set height 0
(gdb) set logging file backtrace.txt
(gdb) set logging redirect on
(gdb) set logging on
Redirecting output to backtrace.txt.
(gdb) thread apply all bt

Written by Dilbert

August 11th, 2011 at 11:06 am

Posted in FreeBSD,Hackery

Tagged with ,

Leave a Reply

You must be logged in to post a comment.