ruifeng yang wrote:
> Hello everyone:
>      I am reading the busybox's sources,the busybox version is 1.13.4.
>      I want to debug the int ash_main(int argc UNUSED_PARAM, char
> **argv) function,
>      How to do it?

I don't see where your problem is, everything works fine.

Of course, because you are not running the "ash" applet but only plain
busybox, it will never call into ash_main().

>      (gdb) b ash_main
>       Breakpoint 1 at 0x805497e: file shell/ash.c, line 13735.
>      (gdb) run

Without using gdb, try those:

./busybox_unstripped
./busybox_unstripped ash

see the difference? ;)

Hope this helps.
Best regards,

        Stefan
-- 
Stefan Seyfried
R&D Team Mobile Devices            |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to