LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2009, 11:11 PM   #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 04-15-2009, 10:54 AM   #2
droneprime
LQ Newbie
 
Registered: Aug 2008
Location: /dev/null
Distribution: Gentoo at home. Everything at work.
Posts: 24

Rep: Reputation: 15
2.6.27?

Hi there,
I have been experimenting with KGDB for some time now, trying to get it to work. Still, I have had somewhat limited success.

KGDB was included in the mainline vanilla kernel for kernels 2.6.27 and after. So, it should already be in the kernel source for your Ubuntu release.

Make sure you have the kernel source that came with Ubuntu installed, then run a
Code:
make menuconfig
and go to
Code:
kernel hacking
. Under that menu, you *should* see a list item that pertains to KGDB. Enable that, and the Magic SysRq option as well.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Kdb/Kgdb kernel debugging ratnakar_78 Linux - Newbie 2 11-29-2007 11:31 AM
Regarding Kdb/Kgdb kernel debugging ratnakar_78 Fedora 2 11-29-2007 09:00 AM
Regarding Kdb/Kgdb kernel debugging ratnakar_78 Linux - Software 1 11-29-2007 07:31 AM


All times are GMT -5. The time now is 08:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration