How to setup kernel debugger in RHEL 6.0 | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

How to setup kernel debugger in RHEL 6.0

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-15-2011
Chrisdot Chrisdot is offline
Registered User
 
Join Date: Oct 2010
Last Activity: 11 September 2012, 6:31 AM EDT
Posts: 43
Thanks: 9
Thanked 0 Times in 0 Posts
How to setup kernel debugger in RHEL 6.0

Hi, I face up a terrible problem that is for me setting up kdb or any other kernel debugger.
Little background:
I am writing linux kernel driver in C and ASM on host (real) machine that is Linux RHEL 6.0.
I run (I mean debug using printk's) that driver on virtual machine: QEMU, RHEL 6.0 (v 2.6.32-71.el6.x86_64).
I need to watch and modify registers, stack, and memory (because of ASM code).

I found some tutorials, but no one is good for me, because everytime I cannot do some steps.
I have never compiled kernel and generally speaking I am linux beginner .

Could you help me with some steps?

___
for example this tutorial:
Inside the Linux kernel debugger
I successfully downloaded, unzpied two files (kdb-v4.4-2.6.33-common-1, kdb-v4.4-2.6.33-x86-1).
Unfortunately I even do not have folder /usr/src/linux ^_^.
Sponsored Links
    #2  
Old 06-16-2011
click's Avatar
click click is offline
Registered User
 
Join Date: May 2011
Last Activity: 20 July 2012, 9:10 AM EDT
Location: Bulgaria
Posts: 75
Thanks: 5
Thanked 13 Times in 12 Posts
Here is a little guide for RHEL 5, it will probaly work with RHEL 6. I`ve not yet tested RHEL 6

How to configure kernel dumps on RHEL 5
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
RHEL 5.0 IP Network setup jxh461 IP Networking 5 04-01-2011 12:48 AM
Forcing a kernel panic in RHEL 5.4 kanna_geekworkz Red Hat 1 12-09-2009 09:39 AM
compile a new kernel in RHEL 5 vikas027 UNIX for Advanced & Expert Users 1 02-05-2008 04:14 AM
Kernel debugger sriram.ec UNIX for Advanced & Expert Users 0 03-23-2006 06:06 AM
where to get Kernel debugger sriram.ec UNIX for Advanced & Expert Users 0 03-22-2006 09:51 AM



All times are GMT -4. The time now is 02:13 AM.