gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] examining mmap memory?


From: David Feng
Subject: [Gdb] examining mmap memory?
Date: Tue, 28 Jan 2003 13:41:48 -0500

I am debugging an user space program that maps in some PCI memory using mmap via my device driver.  The program runs fine and is able access the PCI memory fine using the returned pointer from mmap.  However, when I am in gdb stepping through the program, I get a "Cannot access memory at address 0x40231d00" message when I try to use that pointer to examine memory.
 
The memory is mapped at 0x40231000 and the size is 0x1000.  I have added a mem region as follows:
 
Num Enb Low Addr      High Addr     Attrs
1      y     0x40231000  0x40232000  rw 32 nocache
 
I am running Debian linux version 2.4.19.
 
thanks,
 
Dave Feng
 
 

DISCLAIMER: The information contained in this e-mail is confidential and is intended solely for the review of the named addressee, and in conjunction with specific Acopia Networks business. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you are unable to treat this information accordingly, or are not the intended recipient, please notify us immediately by returning the e-mail to the originator.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]