Discussion:
[Bug symtab/23853] New: Symlinked sourcefiles not found
keiths at redhat dot com
2018-11-02 21:12:10 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23853

Bug ID: 23853
Summary: Symlinked sourcefiles not found
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: keiths at redhat dot com
Target Milestone: ---

GDB cannot find default symtabs when they are symlinks:

$ ln -s example.c example-link.c
$ gcc -g example-link.c -o example
$ gdb -nx -q example -ex "b 10"
Reading symbols from example...
(gdb) list
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see
<http://www.gnu.org/licenses/>. */
15
16 static int
17 foo (void)
18 {
19 return 0; /* break here */
20 }
(gdb)
21
22 int
23 main (void)
24 {
25 return foo ();
26 }
(gdb) b 19
No line 19 in the current file.
Make breakpoint pending on future shared library load? (y or [n])
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...