gdb + mmap + /dev/mem
rtainewbie
rtainewbie@libero.it
Fri Apr 1 16:41:00 GMT 2005
I am trying to debug a simple application running on GNU-Linux kernel 2.6.8.1
(see attachment).
This application works in a memory region not visible for linux (parameter
mem=XXX at boot time).
I map this region using mmap on /dev/mem device as root user.
When I debug it, accessing pointer to this region, the system freezes. So reboot
is necessary and no debug is possible.
The application work correcty but the only solution for debug it is running a
concurrent application that writes the content of this memory region using printf.
Does anybody know an easier and more confortable solution.
Thanks a lot.
____________________________________________________________
Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
Scegli Libero Adsl Flat senza limiti su http://www.libero.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem.c
Type: text/x-csrc
Size: 663 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20050401/b8f2eea5/attachment.bin>
More information about the Gdb
mailing list