This is the mail archive of the gdb-patches@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: Function argument no longer in register


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


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