Mappings with gdbserver
Robert Schwebel
robert@schwebel.de
Mon Jan 12 13:55:00 GMT 2004
I currently try to visualize a piece of memory mapped I/O with gdbserver
and ddd; to get a user space pointer to the device memory I've mmap()ed
the address space and set a breakpoint afterwards, then started this
program with gdbserver.
The problem is that the ddd display does only show FFs and when I try to
write to the addresses I get "cannot access memory". Copying the area
behind my pointer to somewhere else from the program I see the correct
content. This lets me assume that the memory mapping gdbserver sees is
different than what the program-under-test sees.
Can anybody give me a hint how I could visualize and manipulate a piece
of "physical" memory with ddd?
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
HornemannstraÃe 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
More information about the Gdb
mailing list