kdb questions

Dunlap, Randy randy.dunlap at intel.com
Wed Jul 12 16:44:43 PDT 2000


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




More information about the kdb mailing list