public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel debugging
@ 2005-07-24 13:15 UmaMaheswari Devi
  2005-07-24 14:02 ` Jesper Juhl
  2005-07-25 19:23 ` uma
  0 siblings, 2 replies; 5+ messages in thread
From: UmaMaheswari Devi @ 2005-07-24 13:15 UTC (permalink / raw)
  To: linux-kernel

I am new to kernel hacking and am facing problems in trying to peek at the
runtime values of some kernel variables using gdb.

I am issuing the gdb command as follows:
     gdb vmlinux /proc/kcore
This displays the message
    /proc/kcore: Operation not permitted
before the (gdb) prompt is displayed.
gdb then prints a value of 0 for any valid variable that is requested.

vmlinux appears to be OK, as gdb correctly identifies undefined variables.
The problem seems to be with /proc/kcore. This file has a permission of 400. I
am using the Red Hat distribution.

Any help is appreciated. 

Thanks,
Uma.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-25 20:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-24 13:15 kernel debugging UmaMaheswari Devi
2005-07-24 14:02 ` Jesper Juhl
2005-07-24 14:03   ` Jesper Juhl
2005-07-25 19:23 ` uma
2005-07-25 20:02   ` Lee Revell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox