using gdb/kgdb

Charles Krinke ckrinke at istor.com
Tue Feb 27 12:10:30 EST 2007


Dear Clive

After all is said and done, it turns out your original architecture was
the issue. Given a new gdb-6.6, cross compiled for ppc, the incantations
are:

>From uboot

Uboot> setenv bootargs kgdb=ttyS1,115200 kgdbwait <amongstOtherThings>
Uboot> tftp 1000000 uImage
Uboot> bootm 1000000


$ddd -debugger ppc_85xx-xgdb vmlinux
(gdb) set verbose on
(gdb) set architecture powerpc:common
(gdb) set remotebaud 115200
(gdb) target remote /dev/ttyS0
(gdb) break do_fork
(gdb) cont

Gdb does break at do_fork. It can break on the next line or continue to
the next line with no problem.

What it doesn't do is step. When I try to tell it to step, it looks like
it never completes the step function. But in any case, Clive, thank you
very much for getting me to this point. The next place is to figure out
the step command.

Charles



More information about the Linuxppc-embedded mailing list