This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Mappings with gdbserver
- From: Robert Schwebel <robert at schwebel dot de>
- To: gdb at sources dot redhat dot com
- Date: Mon, 12 Jan 2004 14:55:50 +0100
- Subject: Mappings with gdbserver
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