How to define your own command file for gdb and then just find it during debugging? This would help reduce fair typing. Try the following:
Create a file, name it mydef and here its contents:
define cmd
b function-where-you-want-to-break
r
b +2
c
end
After loading the executable into gdb, type gdb source mydefat the prompt, and thencmd
.:)
, !