LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2012, 12:15 AM   #1
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 294

Rep: Reputation: 32
KDB Issue in kernel debugging


I want to debug linux kernel using kdb with keyboard connected console. I have configured kgdboc after kernel booting using
Code:
"echo kbd > /sys/module/kgdboc/parameters/kgdboc"
After that I am doing
Code:
"echo g > /proc/sysrq-trigger"
But I am not getting kdb prompt to debug, please help.

I have followed instructions given in this link
www.emntech.com/docs/kdb_emntech.pdf.
 
Old 12-24-2012, 10:47 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,861
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Have you checked to make sure that file exists in the proc filesystem before invoking that command? What kernel version are you using? (uname -a).

According to kernel 3.7 stable Documentation/sysrq.txt the sysrq control file is located at /proc/sys/kernel/sysrq.

Use ls to determine it exists. When looking at 3rd party debugging documentation one should pay close attention to the version of the kernel the documentation is targeting.

SAM

Last edited by sag47; 12-24-2012 at 10:52 AM.
 
  


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
Debugging Linux Kernel Module with kdb Igor007 Programming 1 10-28-2005 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:55 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