This is the mail archive of the gdb@sourceware.org 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: lib failure?


On Mon, Nov 27, 2006 at 03:57:43PM +0100, Oliver Block wrote:
> __stat (file=0xbffff070 "\200", buf=0xbffff070) at stat.c:51
> 
> both arguments of stat hold the same address. file should be AFAIK 
> fname=0xbffff110.
> 
> I isolated the function to a test_program and it works fine there.

You've stepped into some highly optimized code; it's likely that the
debug information is not accurate enough to get this right.  I would
keep debugging into the function a little further before assuming the
arguments were wrong.

-- 
Daniel Jacobowitz
CodeSourcery


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