Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb and mmap
@ 2002-05-13 12:19 David Stroupe
  2002-05-13 12:24 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: David Stroupe @ 2002-05-13 12:19 UTC (permalink / raw)
  To: gdb

I am mmap()ing a memory range proovided by a driver.  In gdb if I do a 
/x address I get an Cannot access memory at address 0x4001b000 error. 
If on the other hand I do somethink like
str = (char*) address;
printf("%s\n", str);

I see the string that is stored in the address.

Is there a way for me to tell gdb that the mmap()ped address is a valid one?

TIA
David


^ permalink raw reply	[flat|nested] 5+ messages in thread
* GDB and mmap
@ 2007-07-13  8:15 Jan Somr
  2007-07-13 11:44 ` Daniel Jacobowitz
  2007-07-17  3:46 ` Rodrigo Rubira Branco
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Somr @ 2007-07-13  8:15 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-16 19:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-13 12:19 gdb and mmap David Stroupe
2002-05-13 12:24 ` Daniel Jacobowitz
2007-07-13  8:15 GDB " Jan Somr
2007-07-13 11:44 ` Daniel Jacobowitz
2007-07-17  3:46 ` Rodrigo Rubira Branco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox