From: UmaMaheswari Devi <uma@cs.unc.edu>
To: linux-kernel@vger.kernel.org
Subject: kernel debugging
Date: Sun, 24 Jul 2005 09:15:26 -0400 [thread overview]
Message-ID: <42E3946E.4010009@cs.unc.edu> (raw)
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.
next reply other threads:[~2005-07-24 13:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-24 13:15 UmaMaheswari Devi [this message]
2005-07-24 14:02 ` kernel debugging Jesper Juhl
2005-07-24 14:03 ` Jesper Juhl
2005-07-25 19:23 ` uma
2005-07-25 20:02 ` Lee Revell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42E3946E.4010009@cs.unc.edu \
--to=uma@cs.unc.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox