Subject: Re: XF430 debugging advice needed
To: Martin Husemann <martin@duskware.de>
From: David Hopper <dhop@nwlink.com>
List: tech-x11
Date: 03/02/2003 14:28:52
Martin Husemann wrote:
> On Sun, Mar 02, 2003 at 02:13:12PM -0800, David Hopper wrote:
> 
>>pciBusInfo[bus] = (pciBusInfo_t *) 0x120849d70
>>
>>(gdb) display pciBusInfo[bus]->funcs->pciReadLong
>>5:  pciBusInfo[bus]->funcs->pciReadLong = (CARD32 (*)()) Error accessing 
>>memory address 0x0: Invalid argument.
> 
> I'd guess that either pciBusInfo[bus]->funcs or 
> pciBusInfo[bus]->funcs->pciReadLong is NULL;
> 
> Ask gdb to print them...

(gdb) print pciBusInfo[bus]->funcs
$3 = 0x0
(gdb) print pciBusInfo[bus]->funcs->pciReadLong
Error accessing memory address 0x0: Invalid argument.

A guess here, but is it because the function is called with (tag=0,offset=0) args?

> Martin

Thx,
Dave