From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44275 invoked by alias); 14 Sep 2019 15:54:03 -0000 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 Received: (qmail 44254 invoked by uid 89); 14 Sep 2019 15:54:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 14 Sep 2019 15:54:02 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i9AN4-00061X-Jj; Sat, 14 Sep 2019 11:53:58 -0400 Received: from [176.228.60.248] (port=3040 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i9AN4-0006rv-2m; Sat, 14 Sep 2019 11:53:58 -0400 Date: Sat, 14 Sep 2019 15:54:00 -0000 Message-Id: <83tv9eyiu0.fsf@gnu.org> From: Eli Zaretskii To: Andrew Burgess CC: mgulick@mathworks.com, gdb-patches@sourceware.org In-reply-to: <20190914152847.GY6076@embecosm.com> (message from Andrew Burgess on Sat, 14 Sep 2019 11:28:47 -0400) Subject: Re: [RFC] Apply compilation dir to source_path lookup References: <8058b501-9020-84f1-ecf4-b46bfe3b86e3@mathworks.com> <20190907235059.GN6076@embecosm.com> <4d9f4c81-8580-2b42-a434-389ed7655d7f@mathworks.com> <20190913013851.GT6076@embecosm.com> <835zlw1z45.fsf@gnu.org> <834l1g1wp7.fsf@gnu.org> <20190913224535.GX6076@embecosm.com> <83r24jz7q4.fsf@gnu.org> <20190914152847.GY6076@embecosm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00255.txt.bz2 > Date: Sat, 14 Sep 2019 11:28:47 -0400 > From: Andrew Burgess > Cc: mgulick@mathworks.com, gdb-patches@sourceware.org > > If we have: > > DW_AT_name: c:/project/foo.c > DW_AT_comp_dir: d:/project/build/ > > And if the directory search path is: > > g:/mnt/project;$cdir;$cwd > > And the current directory is: > > h:/home/ > > Then this is what I think the search order will be: > > c:/project/foo.c > g:/mnt/project/project/foo.c > d:/project/build/project/foo.c > h:/home/project/foo.c > > d:/project/build/project/foo.c > g:/mnt/project/project/build/project/foo.c > d:/project/build/project/build/project/foo.c > h:/home/project/build/project/foo.c > > g:/mnt/project/foo.c > d:/project/build/foo.c > h:/home/foo.c > > The first and third block is what we currently (pre-patch) do, and the > second block is what I think the patch should provide after Mike's > last suggested update. SGTM, thanks.