LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2009, 01:18 AM   #1
sharma_ankush
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Angry Kernel debugging(kgdb) for Ubuntu 8.10 with kernel 2.6.27


Hi All
i've ubuntu8.10 kernel 2.6.27 installed in my system.
I've to debug the kernel using kgdb, for that i searched on net and found that kgdb is avaliaible only for 2.6.15 kernel source.
so i downloaded 2.6.15 kernel source and did everything to compile it (i used the config file from the kernel installed in my machine having kernel 2.6.27)but in the compilatoin it is giving me the error:

include/asm/mpspec_def.h:78: warning: packed attribute ignored for field of type unsigned char[6]
arch/i386/kernel/apic.c: In function smp_apic_timer_interrupt:
arch/i386/kernel/apic.c:1136: sorry, unimplemented: inlining failed in call to smp_local_timer_interrupt: function body not available
arch/i386/kernel/apic.c:1205: sorry, unimplemented: called from here
make[1]: *** [arch/i386/kernel/apic.o] Error 1
make: *** [arch/i386/kernel] Error 2

Please suggest me how should i proceed for kernel debugging

Thanks
Ankush
 
Old 03-05-2009, 12:23 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
: sorry, unimplemented: called from here
when the kernel was configured kdbg has to be enabled. then build it is in every kernel.
Quote:
ignored for field of type
you must if you copy a config file from. you can use an older kerenl config and for a newer kernel do a make oldconfig then it will ask you to configure the new stuff on the kernel. But the 2.6.25 kernel and a 2.6.27 kernel has some changes . so you can't use a newer kernel config for a older kernel.. make mrproper make config or make oldconfig now go make and do a make gconfig and it will open up the kernel navagate to the enable kernel debuging =y now build it install it and now you can debug all you want.

Last edited by Drakeo; 03-05-2009 at 12:37 AM.
 
Old 07-04-2009, 03:07 PM   #3
dayongruoqie
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
check the gcc version. I guess you are using gcc 4.x.
GCC 3.4.6 would work.
 
Old 07-04-2009, 08:15 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,678

Rep: Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935
kgdb was merged at 2.6.26 ISTR. Don't know about Hardy, but it shows as selected in the Intrepid config.
A grep against the Hardy config for KGDB might save a lot of angst.

Edit: there is a docbook in the kernel source tree for kgdb.

Last edited by syg00; 07-04-2009 at 08:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel debugging(kgdb) for Ubuntu 8.10 with kernel 2.6.27 sharma_ankush Linux - Newbie 1 04-15-2009 11:54 AM
Regarding Kdb/Kgdb kernel debugging ratnakar_78 Linux - Newbie 2 11-29-2007 12:31 PM
Regarding Kdb/Kgdb kernel debugging ratnakar_78 Fedora 2 11-29-2007 10:00 AM
Regarding Kdb/Kgdb kernel debugging ratnakar_78 Linux - Software 1 11-29-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration