From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20142 invoked by alias); 19 Mar 2002 20:14:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20034 invoked from network); 19 Mar 2002 20:13:56 -0000 Received: from unknown (HELO dublin.ACT-Europe.FR) (212.157.227.154) by sources.redhat.com with SMTP; 19 Mar 2002 20:13:56 -0000 Received: from berlin.ACT-Europe.FR (berlin.int.act-europe.fr [10.10.0.169]) by dublin.ACT-Europe.FR (Postfix) with ESMTP id D0E48229E50; Tue, 19 Mar 2002 21:13:54 +0100 (MET) Received: by berlin.ACT-Europe.FR (Postfix, from userid 507) id 1ABEA961; Tue, 19 Mar 2002 21:13:53 +0100 (CET) Date: Tue, 19 Mar 2002 12:14:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: drow@mvista.com, gdb-patches@sources.redhat.com Subject: Re: [RFC] gdb_realpath causes problems with GVD Message-ID: <20020319211353.A20586@act-europe.fr> References: <20020319171236.D6465@act-europe.fr> <20020319123357.A16236@nevyn.them.org> <3405-Tue19Mar2002211430+0200-eliz@is.elta.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3405-Tue19Mar2002211430+0200-eliz@is.elta.co.il>; from eliz@is.elta.co.il on Tue, Mar 19, 2002 at 09:14:31PM +0200 X-SW-Source: 2002-03/txt/msg00362.txt.bz2 > I'm not sure yet. My doubt stems from the fact that directories are > also recorded in the debug info, at least with some formats (stabs, > DWARF2). One place in GDB where we use this is in file-name > completion, for example when you type "break /foo TAB" and want GDB > to complete this to "break /foobar/foo.c" (assuming that there's only > one file foo.c in that directory that was compiled into the program). > > Will this break if symlinks are followed in the directory part, but > not in the file-name part? It seems it does. With the same example where I built toto from toplevel_link/symlink (reminder toplevel_link is a symbolic link to toplevel), here is what is recoded in stabs, << .stabs "/bonn.a/brobecke/toplevel_link/symlinks/",100,0,0,.Ltext0 ^^^^^^^^^^^^^ .stabs "toto.c",100,0,0,.Ltext0 >> And here is a GDB session showing that with both paths: << (gdb) b break_me Breakpoint 1 at 0x8048433: file toto.c, line 4. (gdb) set annotate 1 (gdb) run Starting program: /bonn.a/brobecke/toplevel/symlinks/toto Breakpoint 1, break_me () at toto.c:4 yy/bonn.a/brobecke/toplevel/symlinks/toto.c:4:23:beg:0x8048433 (gdb) b /bonn.a/brobecke/toplevel/symlinks/toto.c:4 Note: breakpoint 1 also set at pc 0x8048433. Breakpoint 2 at 0x8048433: file toto.c, line 4. (gdb) b /bonn.a/brobecke/toplevel_link/symlinks/toto.c:5 Breakpoint 3 at 0x8048438: file toto.c, line 5. >> -- Joel