This is the mail archive of the gdb-patches@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: [PATCH] symfile.c, find_separate_debug_file


On Fri, Aug 03, 2007 at 07:41:56AM -0700, Michael Snyder wrote:
> Sure.  It generates a string such as
> "/usr/local/lib/debug//opt/grbx/lib.so",
> which is then passed to the libc function 'open', which fails to find the
> file.
> 
> When I remove the extra slash, open succeeds.
> 
> This is glibc 2.5 running under UML in Scratchbox, on Ubuntu.
> Gdb is x86-cross-x86, not that that's probably relevant.

That is strange.  If you try it outside of UML and scratchbox, I bet
that won't happen; my money is on a UML bug in the host filesystem
driver.

I can't remember where in POSIX it is, and I can't find it, but I'm
pretty sure that behavior is non-conforming.

-- 
Daniel Jacobowitz
CodeSourcery


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