[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] GDB with uClinux



Hi Walt,

OK more progress - I foud na crucial note from about 12 months ago on 
the subject - turns out we do still need a custom mb-gdb (at least for 
now).  Attached are latest versions of gdbserver archive, and also a 
linux binary for the tweaked mb-gdb - I call it mb-gdb-user.  Put it 
somewhere in the path, potentially along side mb-gdb.

Also freshen your arch/microblaze/kernel/entry.S and ptrace.c.

This seems to work reasonably well, multiple breakpoints and single 
stepping are all fine - the only unresolved issue now is that when 
gdbserver terminates on the microblaze, it kills the shell in which it 
was run.  This is annoying, but not a showstopper.  Please test it out 
and let me know if it works for you.

Usage is as follows:

on the microblaze:

$ gdbserver host:1234 /bin/myapplication

on the host

$ mb-gdb-user myapplication.gdb
% target remote microblaze-ip-address:1234
% break, step, run, etc etc etc

The .gdb image that is produced in the application link process, is the 
one you load in mb-gdb-user

Regards,

John

Attachment: mb-gdb-user
Description: application/vnd.mozilla.guess-from-ext

Attachment: gdbserver-uc-new.tar.gz
Description: GNU Zip compressed data