public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug remote/16622] New: set sysroot remote: is not enough for set debug-file-directory
Date: Fri, 21 Feb 2014 15:57:00 -0000	[thread overview]
Message-ID: <bug-16622-4717@http.sourceware.org/bugzilla/> (raw)

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.


             reply	other threads:[~2014-02-21 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 15:57 jan.kratochvil at redhat dot com [this message]
2021-05-27  2:35 ` [Bug remote/16622] " daniel at mariadb dot org
2021-05-27  6:20 ` daniel at mariadb dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-16622-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).