Quantcast
Channel: Peeter Joot's Blog. » debugging
Viewing all articles
Browse latest Browse all 5

turning off the gdb pager to collect gobs of info.

$
0
0

I’ve got stuff interrupted with the debugger, so I can’t invoke our external tool to collect stacks. Since gdb doesn’t have redirect for most commands here’s how I was able to collect all my stacks, leaving my debugger attached:

(gdb) set height 10000
(gdb) set logging on
(gdb) thread apply all where

Now I can go edit gdb.txt when it finishes (in the directory where I initially attached the debugger to my pid), and examine things. A small tip, but it took me 10 minutes to figure out how to do it (yet again), so it’s worth jotting down for future reference.



Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images