From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32633 invoked by alias); 21 Feb 2014 15:57:32 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 32594 invoked by uid 48); 21 Feb 2014 15:57:31 -0000 From: "jan.kratochvil at redhat dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jan.kratochvil at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter dependson cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00270.txt.bz2 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: 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: warning: Ignoring non-absolute filename: 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.