This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb + mmap + /dev/mem
- From: Daniel Jacobowitz <drow at false dot org>
- To: rtainewbie <rtainewbie at libero dot it>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Fri, 1 Apr 2005 12:20:51 -0500
- Subject: Re: gdb + mmap + /dev/mem
- References: <IEA10O$5C11B39B82AF59A7BD34617F4F6C3DE1@libero.it>
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