Debugging a custom kernel

Christopher Harvey chris at basementcode.com
Thu Jun 30 09:12:21 EDT 2011


On Wed, 29 Jun 2011 23:27:41 +0200, Apelete Seketeli wrote:
> On 29-Jun-11, Christopher Harvey wrote:
>> On 06/29/11 16:14, Apelete Seketeli wrote:
>>  > I still can't
>> > figure where the boot process is getting stuck with step-by-step
>> > execution, but it seems that the last function called is 
>> "delay_loop"
>> > from arch/x86/lib/delay.c.
>> Have you run the backtrace (bt) command from the gdb shell? That 
>> should
>> tell you what function is calling the __delay.
>
> I didn't, will try that and see if it helps.

That command is your bread and butter. If you type "up" into gdb it 
will take you to the line that called __delay. Keep typing up to see 
exactly what series of functions were called to get to the __delay.





More information about the Kernelnewbies mailing list