kdb
[Top] [All Lists]

kdb questions

To: kdb@xxxxxxxxxxx
Subject: kdb questions
From: "Dunlap, Randy" <randy.dunlap@xxxxxxxxx>
Date: Wed, 12 Jul 2000 16:44:43 -0700
Sender: owner-kdb@xxxxxxxxxxx
Hi,

With kdb (i386), are there ways to
1) read a physical memory address or
2) read from an io port?

1) If a driver (being developed/debugged) had
mapped the physical memory address to a virtual
address, and you knew that address, you could read
that memory.

2) For an IO port, if the driver read it to a
register then you could look at the register with kbd.


But what if you are testing a driver and the driver dies,
but not the kernel.  You could cat /proc/pci to get the
device's physical memory address and read that with kbd,
if kdb could read such addresses.

IO register access could be useful after a device and/or
driver is dead also, to help determine why the device
died.

Thanks,
~Randhy


<Prev in Thread] Current Thread [Next in Thread>