This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/23565] New: sysroot target: does not read symbol files from /usr/lib/debug/
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 23 Aug 2018 04:51:28 +0000
- Subject: [Bug symtab/23565] New: sysroot target: does not read symbol files from /usr/lib/debug/
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=23565
Bug ID: 23565
Summary: sysroot target: does not read symbol files from
/usr/lib/debug/
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target Milestone: ---
FAIL: d0abeec8d45514fbec790f27e3cadceb576df9b5 2018-08-23
The new default sysroot target: can read symbol files XXX.debug and
.debug/XXX.debug but not /usr/lib/debug/ ones.
So with remote Fedora installation with debuginfo installed the symbol files
are not used, they must be present locally.
------------------------------------------------------------------------------
It cannot read the symbol file from remote target:
Reading /lib64/ld-linux-x86-64.so.2 from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to
access files locally instead.
Reading /lib64/ld-linux-x86-64.so.2 from remote target...
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading
/lib64/ld-2.27.so.debug from remote target...
Reading /lib64/.debug/ld-2.27.so.debug from remote target...
(no debugging symbols found)...done.
------------------------------------------------------------------------------
But it can read the symbol file if it is present locally:
Reading /lib64/ld-linux-x86-64.so.2 from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to
access files locally instead.
Reading /lib64/ld-linux-x86-64.so.2 from remote target...
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading symbols from
/usr/lib/debug/usr/lib64/ld-2.27.so.debug...done.
done.
------------------------------------------------------------------------------
It can read the symbol file remotely if it has the local .debug name:
Reading /lib64/ld-linux-x86-64.so.2 from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to
access files locally instead.
Reading /lib64/ld-linux-x86-64.so.2 from remote target...
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading
/lib64/ld-2.27.so.debug from remote target...
Reading /lib64/ld-2.27.so.debug from remote target...
Reading symbols from target:/lib64/ld-2.27.so.debug...done.
done.
But another bug is that in such case it reads the symbol file twice which can
be slow.
--
You are receiving this mail because:
You are on the CC list for the bug.