This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [uml-user] problems debugging an uml skas kernel with gdb


Hey,


>> the problems are:
>>
>> 1) a pointer to a struct was not seen by the debugger:
>>
>> example session:
>>
>> Breakpoint 4, yoghi_init (sch=0x9d1b830, opt=0x9d1b400)
>>     at net/sched/sch_yoghi.c:235
>> 235             printk(KERN_DEBUG "Yoghi 0.0.3 Initiaziled\n");
>> (gdb) n
>> Yoghi 0.0.3 Initiaziled
>> 236             if(q != NULL)
>> (gdb) n
>> 237                     printk(KERN_DEBUG "yoghi_init: q =
>> 0x%x\n",(u32)q);
>> (gdb) n
>> yoghi_init: q = 0x9d1b480
>> 238             return 0;
>> (gdb) p q
>> No symbol "q" in current context.

You might want to show the entire source and the assembly generated as
well. Even better see if you can narrow it down to a testcase . We dont
have enough information to know whats going on here. Maybe you can try and
pare it down to a smaller testcase (better) or send the disassembly over
(of the affected function) with its source if possible .There are a couple
of situations when gdb can get lost.


cheers
Ramana



----
Ramana Radhakrishnan
Codito Technologies


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]