Function argument no longer in register

Orjan Friberg orjan.friberg@axis.com
Mon Mar 29 14:44:00 GMT 2004


Daniel Jacobowitz wrote:
>>
>>I don't know what kind of problem I'm looking at here.  Could it be that 
>>the debug information is wrong?  I'm guessing GDB somehow fails to 
>>realize that the function argument is out of scope at this point.
> 
> 
> Nothing's wrong - eventually, versions of GCC with proper location list
> will tell GDB that the variable is out of scope, but no released
> version does that.  I think 3.5 snapshots will.

Ah, ok.  Thanks.  The setup is a remote stub debugging a Linux kernel, 
and the first page (8k for CRIS) is read/write-protected.  So, I guess I 
need to filter out these bogus reads in the stub to prevent the kernel 
from oopsing.

-- 
Orjan Friberg
Axis Communications



More information about the Gdb-patches mailing list