public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17934] New: substitute-source does not work for relative source filenames
@ 2015-02-06 18:32 maxim.yegorushkin at gmail dot com
  2024-03-28  5:09 ` [Bug gdb/17934] " sam at gentoo dot org
  0 siblings, 1 reply; 2+ messages in thread
From: maxim.yegorushkin at gmail dot com @ 2015-02-06 18:32 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/17934] substitute-source does not work for relative source filenames
  2015-02-06 18:32 [Bug gdb/17934] New: substitute-source does not work for relative source filenames maxim.yegorushkin at gmail dot com
@ 2024-03-28  5:09 ` sam at gentoo dot org
  0 siblings, 0 replies; 2+ messages in thread
From: sam at gentoo dot org @ 2024-03-28  5:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17934

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-28  5:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 18:32 [Bug gdb/17934] New: substitute-source does not work for relative source filenames maxim.yegorushkin at gmail dot com
2024-03-28  5:09 ` [Bug gdb/17934] " sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).