public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "daniel at mariadb dot org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/17917] gdbserver should lookup build-ids in the remote binaries Date: Sat, 28 Aug 2021 03:39:02 +0000 [thread overview] Message-ID: <bug-17917-4717-cD3SShtQuD@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-17917-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=17917 daniel at mariadb dot org <daniel at mariadb dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel at mariadb dot org --- Comment #1 from daniel at mariadb dot org <daniel at mariadb dot org> --- Totally agree. In trying to make self contained debug environments like containers, to help users with developers tackle tricky problems: Example: $ podman run -d --rm -p 2345 --cap-add CAP_SYS_PTRACE --name mdb-debug -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 quay.io/mariadb-foundation/mariadb-debug:10.5 1f2f0246ad656dad10be8cacedf312f94f7b98651906f29d09f07dbf048c4f70 $ podman port mdb-debug 2345 0.0.0.0:44663 $ podman exec -ti mdb-debug gosu mysql gdbserver --attach :2345 1 Attached; pid = 1 Listening on port 2345 $ gdb GNU gdb (GDB) Fedora 10.2-3.fc34 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set debug separate-debug-file 1 (gdb) target extended-remote :44663 Remote debugging using :44663 Reading /usr/sbin/mariadbd from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /usr/sbin/mariadbd from remote target... Reading symbols from target:/usr/sbin/mariadbd... Looking for separate debug info (build-id) for target:/usr/sbin/mariadbd Trying /usr/lib/debug/.build-id/57/c35022dc84dd28479db41cc278f625776c4adc.debug... Looking for separate debug info (debug link) for target:/usr/sbin/mariadbd Trying target:/usr/sbin/c35022dc84dd28479db41cc278f625776c4adc.debug...Reading /usr/sbin/c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:/usr/sbin/.debug/c35022dc84dd28479db41cc278f625776c4adc.debug...Reading /usr/sbin/.debug/c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:/usr/lib/debug//usr/sbin/c35022dc84dd28479db41cc278f625776c4adc.debug...Reading /usr/lib/debug//usr/sbin/c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:/usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4adc.debug...Reading /usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:target:/usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4adc.debug...Reading target:/usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Missing separate debuginfo for target:/usr/sbin/mariadbd Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/57/c35022dc84dd28479db41cc278f625776c4adc.debug (No debugging symbols found in target:/usr/sbin/mariadbd) /usr/lib/debug/.build-id/57/c35022dc84dd28479db41cc278f625776c4adc.debug existed on the target if gdb asked. podman exec -ti mdb-debug ls -la /usr/lib/debug/.build-id/57/c35022dc84dd28479db41cc278f625776c4adc.debug -rw-r--r--. 1 root root 120833256 Aug 27 11:26 /usr/lib/debug/.build-id/57/c35022dc84dd28479db41cc278f625776c4adc.debug -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-08-28 3:39 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-02-03 7:09 [Bug gdb/17917] New: " eseidel at google dot com 2021-08-28 3:39 ` daniel at mariadb dot org [this message] 2021-08-28 6:51 ` [Bug gdb/17917] " daniel at mariadb dot org 2021-10-19 17:30 ` cvs-commit at gcc dot gnu.org 2021-10-19 17:42 ` tromey at sourceware dot org 2021-10-20 1:08 ` daniel at mariadb dot org 2021-10-20 2:06 ` tromey at sourceware dot org 2021-10-20 4:42 ` daniel at mariadb dot org 2023-01-02 19:31 ` tromey at sourceware 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-17917-4717-cD3SShtQuD@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: linkBe 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).