Re: GDB can't access mapped memory

From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 10/06/05


Date: Thu, 06 Oct 2005 20:07:52 GMT

Hans-J. Ude wrote:
> I'm writing a program which communicates with a custom PCI card and I
> need access to the card's memory. I use something like pVirt =
> mmap(...) and everything seems to work fine. The problem is that GDB
> is unable to access this pointer which is a flaw for me because i
> assign a big structure to the pointer which holds important varibles.
> Is there a way to give GDB access to that memory? I forgot to say
> that it's an i86 system and GDB version is 6.3 IIRC.
>

Are you talking about access in kernel or user mode?

The usual GDB cannot access kernel mode addresses, you
need the kgdb for that.

-- 
Tauno Voipio
tauno voipio (at) iki fi