From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27578 invoked by alias); 6 Feb 2015 18:07:36 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 27533 invoked by uid 48); 6 Feb 2015 18:07:35 -0000 From: "maxim.yegorushkin at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17934] New: substitute-source does not work for relative source filenames Date: Fri, 06 Feb 2015 18:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: maxim.yegorushkin at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00202.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17934 Bug ID: 17934 Summary: substitute-source does not work for relative source filenames Product: gdb Version: 7.4 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: maxim.yegorushkin at gmail dot com substitute-path does not get applied for some reason. The paths in the debug info start with src/ which I would like to replace with /apps/maxim/s2bx/: 17 in src/fix/main.cpp (gdb) show substitute-path List of all source path substitution rules: `src' -> `/apps/maxim/s2bx'. (gdb) l main 17 in src/fix/main.cpp (gdb) directory Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) l main 17 src/fix/main.cpp: No such file or directory. maxim@uklpadeci21:~ $ ls -l /apps/maxim/s2bx/fix/main.cpp -rw-r--r-- 1 maxim maxim 2529 Jan 30 10:25 /apps/maxim/s2bx/fix/main.cpp Why does it not replace src/ with /apps/maxim/s2bx/ please? I check strace of gdb and it does not even try to stat/open anything from /apps/maxim/s2bx/. Maxim -- You are receiving this mail because: You are on the CC list for the bug.