Jivin Muthu, Pushparaj IN GGN SISL lays it down ...
> Jivin Muthu, Pushparaj IN GGN SISL lays it down ...
> Hi all
>
> I'm debugging the uClinux kernel 2.4 code by using arm-elf-gdb . While debug
> given below function( contain C and assembly code )
> I got stuck up.and could you please tell me to how to go ahead ?
>
> You may need to switch to using "stepi" in the cases where GDB cannot
> find the "next" line of code.
>
> Also do something like:
>
> display /i $pc
>
> to be able to easily step through assembly code with stepi,
>
> Cheers,
> Davidm
>
> Reply
>
> Using display /i $pc and stepi command I could able to debug assembly
> instruction and how to come out after debuged assembly instruction. Next I
> want to start debug c code after completed of assembly instruction.
Application or kernel code ?
At this point you get into a tricky problem of needing to set a
breakpoint somewhere. Read through the various debug docs on
ucdot, you will find some tricks in there:
http://www.ucdot.org/article.pl?sid=03/01/30/0548223 (relevant)
http://www.ucdot.org/article.pl?sid=03/01/07/0214244 (not so relevant)
http://www.ucdot.org/faq.pl (in case I missed
one)
Cheers,
Davidm
--
David McCullough, [EMAIL PROTECTED], Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev