Download your favorite Linux distribution at LQ ISO.
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 04-14-2009, 09:16 AM   #1
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Question display data structure using gdb

Dear all

I am new in kernel development. I want to debug kernel to get value of data structures which are in use. For example i want to get value of sk_buff data structure for running kernel. I am using gdb for debugging running kernel.
command is as following

root# gdb /vk/linux/vmlinux /proc/kcore
(where vmlinux is uncompressed kernel image.)

Above command execute successfully and i got gdb prompt.

What i should do now?



data, kernel, structure

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
gdb doesn't show correct string data prima8 Linux - Newbie 0 03-11-2009 04:21 PM
A data structure problem Asuralm Programming 1 12-24-2007 07:49 AM
c++ data structure libraries kpachopoulos Programming 2 01-16-2007 04:22 PM
gdb cannot display argc/argv? Nick_Battle Programming 3 01-12-2007 12:06 PM
Data structure trie spank Programming 7 05-21-2006 07:21 AM

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