Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-06-2009, 06:50 PM   #1
LQ Newbie
Registered: Aug 2008
Location: /dev/null
Distribution: Gentoo at home. Everything at work.
Posts: 24

Rep: Reputation: 15
More KGDB woes...

So I can debug kernel code with KGDB now. No sweat.
I can also debug LKMs with KGDB using the special version of GDB, GDBMOD. Also no sweat.

Now I would like to debug a User-Space application that is designed to interact with the LKM that I am interested in. Does anyone know if GDB is capable of doing this?

My guess is that this is essentially like debugging two programs at once. Am I crazy, or is this right? I mean, there is no problem debugging an LKM because it is loaded into the kernel-space, so it's just like part of the kernel.

Thanks in advance!
Old 08-10-2009, 02:03 PM   #2
LQ Newbie
Registered: Aug 2007
Posts: 7

Rep: Reputation: 1
You'd have to use KGDB for the kernel-space debugging, and GDB for the user space debugging. So, yeah, it's like debugging two programs, but each needs its own debugger. The only debugger I know that can handle both at once is proprietary -- the Arriba debugger from Viosoft, but I don't know how many architectures they support. The target mostly embedded systems, esp. MIPS.

Old 08-10-2009, 04:34 PM   #3
LQ Newbie
Registered: Aug 2008
Location: /dev/null
Distribution: Gentoo at home. Everything at work.
Posts: 24

Original Poster
Rep: Reputation: 15
Wow, thanks for the tip. I've never even heard of this debugger.
I was doing some reading about it and there's a picture in this pdf file that highlights the exact "area" I am having problems debugging.

Once again, thanks for your help.

I would still appreciate any other input you guys have.
Thanks in advance!


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
Kgdb devkpict Linux - Kernel 5 01-18-2008 04:57 AM
kgdb version vkmgeek Programming 0 10-05-2007 08:07 AM
KGDB for amitbmehta123 Linux - Kernel 1 06-04-2006 08:28 AM
Kgdb - Gdb Igor007 Programming 1 01-16-2006 08:44 PM
problem using kgdb 1.5 with 2.4.20-8 Surekha Gupta Linux - Newbie 1 01-03-2006 04:06 AM

All times are GMT -5. The time now is 09:21 PM.

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