This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/16622] New: set sysroot remote: is not enough for set debug-file-directory
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 21 Feb 2014 15:57:30 +0000
- Subject: [Bug remote/16622] New: set sysroot remote: is not enough for set debug-file-directory
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16622
Bug ID: 16622
Summary: set sysroot remote: is not enough for set
debug-file-directory
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: remote
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Depends on: 15651
Host: x86_64-unknown-linux-gnu
Target: x86_64-redhat-linux-gnu
One has to use explicit 'set debug-file-directory local-directory' even after
'set sysroot remote:' because neither automatically nor explicit 'remote:'
prefix for 'set debug-file-directory' works. That also means one has to have
NFS-mounted target machine and the 'remote:' mechanism is not usable for 'set
debug-file-directory'.
remote$ gdbserver :1234 xz
local$ gdb -ex 'set sysroot remote:' -ex 'target remote host1s:1234' -ex
'symbol-file remote:/usr/bin/xz' -ex 'l main'
->
Reading symbols from remote:/usr/bin/xz...warning: the debug information found
in "/usr/lib/debug/usr/bin//xz.debug" does not match "remote:/usr/bin/xz" (CRC
mismatch).
warning: Ignoring non-absolute filename: <remote:/usr/bin/xz>
Missing separate debuginfo for remote:/usr/bin/xz
Try: yum --enablerepo='*debug*' install
/usr/lib/debug/.build-id/3b/f71a5d02162aefbe30f77a626e71b0b0a165d9.debug
Reading symbols from remote:/usr/bin/xz...(no debugging symbols found)...done.
(no debugging symbols found)...done.
No symbol table is loaded. Use the "file" command.
remote$ gdbserver :1234 xz
local$ gdb -ex 'set sysroot remote:' -ex 'set debug-file-directory
remote:/usr/lib/debug' -ex 'target remote host1s:1234' -ex 'symbol-file
remote:/usr/bin/xz' -ex 'l main'
->
Reading symbols from remote:/usr/bin/xz...warning: the debug information found
in "/usr/lib/debug/usr/bin//xz.debug" does not match "remote:/usr/bin/xz" (CRC
mismatch).
warning: Ignoring non-absolute filename: <remote:/usr/bin/xz>
warning: Ignoring non-absolute filename:
<remote/.build-id/3b/f71a5d02162aefbe30f77a626e71b0b0a165d9.debug
/usr/lib/debug/.build-id/3b/f71a5d02162aefbe30f77a626e71b0b0a165d9.debug>
Missing separate debuginfo for remote:/usr/bin/xz
Try: yum --enablerepo='*debug*' install
remote/.build-id/3b/f71a5d02162aefbe30f77a626e71b0b0a165d9.debug
/usr/lib/debug/.build-id/3b/f71a5d02162aefbe30f77a626e71b0b0a165d9.debug
Reading symbols from remote:/usr/bin/xz...(no debugging symbols found)...done.
(no debugging symbols found)...done.
No symbol table is loaded. Use the "file" command.
remote$ gdbserver :1234 xz
local$ gdb -ex 'set sysroot remote:' -ex 'set debug-file-directory
/host1/var/lib/mock/fedora-19-x86_64/root/usr/lib/debug' -ex 'target remote
host1s:1234' -ex 'symbol-file remote:/usr/bin/xz' -ex 'l main'
->
Reading symbols from remote:/usr/bin/xz...Reading symbols from
/host1/var/lib/mock/fedora-19-x86_64/root/usr/lib/debug/usr/bin/xz.debug...done.
done.
[...]
142 int
143 main(int argc, char **argv)
--
You are receiving this mail because:
You are on the CC list for the bug.