[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] User application debug.
Hi Leonid,
Leonid wrote:
> Petalogix site explains how to debug user applications here
> http://developer.petalogix.com/wiki/UserGuide/Debugging/UserApplications
> .
>
> However it will work if you have shell prompt and can start application
> manually. I can also start gdb server from rc script. But what to do if
> I want to debug busybox - uClinux runs it automatically each time some
> of the applets is called?
You can debug busybox like any other application, just invoke busybox
itself with the applet name as the first param. e.g.
# gdbserver host:1234 /bin/busybox ls /bin/*
If you are unable to get a busybox shell, then prehaps try one of the
other shells (user/vendor settings -> core settings), and set it to be
/bin/sh. Still build the busybox shell, but your system should boot
into the alternative first. Then debug as above.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/