gdb + mmap + /dev/mem
Daniel Jacobowitz
drow@false.org
Fri Apr 1 17:21:00 GMT 2005
On Fri, Apr 01, 2005 at 06:41:12PM +0200, rtainewbie wrote:
> 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.
This is presumably a Linux kernel bug; you may want to talk to the
Linux kernel developers about it.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb
mailing list