scripts/gdb: provide exception catching parser