Bug 25518 - gdb annotations print real path
Summary: gdb annotations print real path
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-07 21:10 UTC by Tom Tromey
Modified: 2020-02-12 16:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2020-02-07 21:10:44 UTC
gdb annotations and other file-name displays can show the real
path, not the path the user used to compile.

There was an attempt to fix this in commit a0c1ffedc, but
this had to be reverted due to bug#24915.

This bug is a reminder to re-investigate this and find a better fix.
Perhaps we can separate the concepts of the path used for
matching and the path used for display; and also maybe add some
caching.
Comment 1 Jonah Graham 2020-02-12 16:12:28 UTC
Thank you Tom for resolving the issue in Bug#24915 before the 9.1 release. 

When this problem is revisited, I created a testcase that reproduces the regression in https://sourceware.org/ml/gdb-patches/2019-08/msg00421.html

However, that only handled case of a single file - there is another case that could use a test Bug 24915 Comment 17.