Ah, I see the problem, you're adding gdb's pid.  Wouldn't it be sufficient to add the watchdog's pid since it is gdb's parent?