From: Mark Kettenis <kettenis@wins.uva.nl>
To: khilman@equator.com
Cc: gdb@sourceware.cygnus.com
Subject: Re: examining mmap()'d memory regions on linux
Date: Wed, 17 May 2000 14:55:00 -0000 [thread overview]
Message-ID: <200005172155.e4HLtL412952@delius.kettenis.local> (raw)
In-Reply-To: <r23dngrjg9.fsf@bobdog.equator.com>
From: Kevin Hilman <khilman@equator.com>
Date: 17 May 2000 13:49:10 -0700
I have an app that reads/writes to an mmap()'d region. The data
is being read and written fine because it's getting to it's final
location (in this case a hardware device).
However, if I try to examine (via 'x') these memory regions in gdb, I
always get zeros.
Does gdb support mmap()'d regions?
Sure. However, since you mention a hardware device, you're probably
trying to examine memory mapped from that device. The Linux kernel
prevents GDB from reading "non-kernel-mapped video buffers and
similar" (see arch/i386/kernel/ptrace.c in the Linux source tree), and
will return all zeroes instead. Probably because reading from such
memory often has side-effects.
Nothing we can do about that in GDB!
Mark
next parent reply other threads:[~2000-05-17 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <r23dngrjg9.fsf@bobdog.equator.com>
2000-05-17 14:55 ` Mark Kettenis [this message]
2000-05-17 16:34 ` Andrew Cagney
2000-06-05 18:01 j_clifton
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=200005172155.e4HLtL412952@delius.kettenis.local \
--to=kettenis@wins.uva.nl \
--cc=gdb@sourceware.cygnus.com \
--cc=khilman@equator.com \
/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