LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   display data structure using gdb (https://www.linuxquestions.org/questions/linux-kernel-70/display-data-structure-using-gdb-719028/)

vishesh 04-14-2009 09:16 AM

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?

Thanks


All times are GMT -5. The time now is 05:13 AM.