This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb + mmap + /dev/mem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]