From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 748153858436; Sat, 28 Aug 2021 03:39:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 748153858436 From: "daniel at mariadb dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel at mariadb dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2021 03:39:03 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17917 daniel at mariadb dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel at mariadb dot org --- Comment #1 from 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=3D1=20=20 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 =3D 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 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: . Find the GDB manual and other documentation resources online at: . 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...Read= ing /usr/sbin/.debug/c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:/usr/lib/debug//usr/sbin/c35022dc84dd28479db41cc278f625776c4adc.debu= g...Reading /usr/lib/debug//usr/sbin/c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:/usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4adc.debu= g...Reading /usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4adc.debug from remote target... no, unable to open. Trying target:target:/usr/lib/debug/usr/sbin//c35022dc84dd28479db41cc278f625776c4a= dc.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=3D'*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=20 /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 --=20 You are receiving this mail because: You are on the CC list for the bug.=