List Info

Thread: GDB and mmap




GDB and mmap
country flaguser name
Czech Republic
2007-07-13 03:15:06
Hi all, please help. 
I have an application which makes cores and uses mapped
memory (mmap).  How can I access this memory in GDB? 
When I try print it I get this message: "Cannot access
memory at address xxxxxxxxxx". Is the shared memory
dumped in the core?
Thank you.

Re: GDB and mmap
country flaguser name
United States
2007-07-13 06:44:45
On Fri, Jul 13, 2007 at 10:15:06AM +0200, Jan Somr wrote:
> Hi all, please help. 
> I have an application which makes cores and uses mapped
memory (mmap).  How can I access this memory in GDB? 
> When I try print it I get this message: "Cannot
access memory at address xxxxxxxxxx". Is the shared
memory dumped in the core?

No, it usually is not dumped.  There's nothing GDB can do
about that.

Some operating systems have configuration options to control
what is
dumped.

-- 
Daniel Jacobowitz
CodeSourcery

Re: GDB and mmap
user name
2007-07-15 20:30:56
On Fri, 2007-07-13 at 10:15 +0200, Jan Somr wrote:
> Hi all, please help. 
> I have an application which makes cores and uses mapped
memory (mmap).  How can I access this memory in GDB? 
> When I try print it I get this message: "Cannot
access memory at address xxxxxxxxxx". Is the shared
memory dumped in the core?
> Thank you.

If the vm_area_struct of the mapped area have the vm_flags
attribute set
to VM_IO, this area will not be dumped...


cya,


Rodrigo (BSDaemon).

-- 
Rodrigo Rubira Branco
Software Engineer 
Advanced Linux Response Team (ALRT) / Linux on Power
Toolchain
IBM Linux Technology Center (IBM/LTC)
rrbrancobr.ibm.com

GPG KeyID: 1FCEDEA1
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )