Monday, October 4, 2010

Notes on gdb use

I find myself looking up how to do certain things with gdb, because I use it rarely enough not to remember, but frequently enough for these to be somewhat annoying. This post notes how to handle things like signals and paging in gdb.

Disable paging in gdb:

set height 0

Tell gdb not to stop execution on sigusr1 or sigusr2 - good for debugging postgresql:

handle SIGUSR1 nostop
handle SIGUSR2 nostop

No comments:

Post a Comment

Captchas suck. Bots suck more. Sorry.