From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12369 invoked by alias); 3 Aug 2007 15:09:50 -0000 Received: (qmail 12358 invoked by uid 22791); 3 Aug 2007 15:09:49 -0000 X-Spam-Check-By: sourceware.org Received: from a.mail.sonic.net (HELO a.mail.sonic.net) (64.142.16.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Aug 2007 15:09:42 +0000 Received: from snyder (209-204-172-156.dsl.dynamic.sonic.net [209.204.172.156]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with SMTP id l73F9dg9003065; Fri, 3 Aug 2007 08:09:39 -0700 Message-ID: <004f01c7d5df$94fd4cc0$677ba8c0@sonic.net> Reply-To: "Michael Snyder" From: "Michael Snyder" To: "Daniel Jacobowitz" Cc: , "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> <20070803150005.GA26381@caradoc.them.org> Subject: Re: [PATCH] symfile.c, find_separate_debug_file Date: Fri, 03 Aug 2007 15:09:00 -0000 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 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/msg00057.txt.bz2 ----- Original Message ----- From: "Daniel Jacobowitz" To: "Michael Snyder" Cc: ; "Mark Kettenis" Sent: Friday, August 03, 2007 8:00 AM Subject: 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. OK, well I'm interested to find out. I *think* I saw the same failure under Ubuntu, but I'll have to confirm when I get back to the office. Either way, though, there's nothing wrong with taking out an extra slash, is there? It doesn't serve any purpose. Maybe gdb should work even if the underlying OS isn't Posix compliant.