Skip to contentSkip to conversation

can't print a mmaped region in gdb: Cannot access memory at address ...

DISCUSSION Clem Taylor 1 participant 1 message Jul 5, 2005 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to debug some code with gdb that mmaps() PCI address space and mmaps a kernel GFP_DMA buffer. Outside of gdb mmap() interface is working just fine, but when I try to print the mmaped memory from gdb I get a 'Cannot access memory at address ...'

Is this a kernel ptrace() issue or a gdb issue? I'm using linux-mips 2.6.11 from 2005.03.18 on an Alchemy Au1550. Google didn't turn up anything interesting on this subject.

Thanks,
Clem