GDB

Table of contents:

Getting stacktrace from a child

First set your mode

set follow-fork-mode child

After you run the app, read the forked child processes and:

attach childid

Signal handling

Catching specific signal

catch signal 11

Ignoring specific signal

handle SIGUSR1 noprint nostop

Listing current handling

handle signalname (e.g. SIGUSR1 or 'all')