Hope https://www.kernel.org/pub/linux/kernel/people/jwessel/kgdb/ch03s04.html
will help. Please google for the kgdboe patch. I am not sure whether
it got merged with the mainline kernel already.
Note: I have tried this only with x86. But I guess it should work with
PowerPC also.
Regards,
PrasannaKumar