From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30367 invoked by alias); 3 Aug 2007 15:00:15 -0000 Received: (qmail 30351 invoked by uid 22791); 3 Aug 2007 15:00:14 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Aug 2007 15:00:09 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 2A27298123; Fri, 3 Aug 2007 15:00:09 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C5F9898122; Fri, 3 Aug 2007 15:00:08 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IGydK-00070h-2U; Fri, 03 Aug 2007 11:00:06 -0400 Date: Fri, 03 Aug 2007 15:00:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: gdb-patches@sourceware.org, Mark Kettenis Subject: Re: [PATCH] symfile.c, find_separate_debug_file Message-ID: <20070803150005.GA26381@caradoc.them.org> Mail-Followup-To: Michael Snyder , gdb-patches@sourceware.org, Mark Kettenis References: <10431.12.7.175.2.1186103684.squirrel@webmail.sonic.net> <200708030554.l735scVD028947@brahms.sibelius.xs4all.nl> <000b01c7d59d$608d4040$677ba8c0@sonic.net> <10431.12.7.175.2.1186103684.squirrel@webmail.sonic.net> <20070803013005.GA22901@caradoc.them.org> <006901c7d587$db360400$677ba8c0@sonic.net> <20070803114033.GA16806@caradoc.them.org> <001901c7d5dc$714de440$677ba8c0@sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c7d5dc$714de440$677ba8c0@sonic.net> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00054.txt.bz2 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