From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 32D503858419; Wed, 20 Oct 2021 01:08:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32D503858419 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: Wed, 20 Oct 2021 01:08:04 +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: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 12.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Wed, 20 Oct 2021 01:08:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17917 --- Comment #5 from daniel at mariadb dot org -= -- confirmed. Thanks Simon and Tom. $ podman run --rm -d -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=3D1 --cap-add CAP_SYS_PTRACE --name mdb-debug -p 2345:2345=20 quay.io/mariadb-foundation/mariadb-debug:10.5 $ podman exec mdb-debug ls -la /usr/lib/debug/.build-id/../.build-id/6e/0a874dca5a7ff831396ddc0785d939a192= efe3.debug -rw-r--r--. 1 root root 120877312 Oct 6 15:21 /usr/lib/debug/.build-id/../.build-id/6e/0a874dca5a7ff831396ddc0785d939a192= efe3.debug $ podman exec -ti mdb-debug gosu mysql gdbserver --attach :2345 1 Attached; pid =3D 1 Listening on port 2345 $ ./gdb GNU gdb (GDB) 12.0.50.20211020-git 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-pc-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-file-directory /usr/lib/debug (gdb) target extended-remote :2345 Remote debugging using :2345 warning: Can not parse XML target description; XML support was disabled at compile time 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... Reading /usr/lib/debug/.build-id/6e/0a874dca5a7ff831396ddc0785d939a192efe3.debug fr= om remote target... Reading /usr/lib/debug/.build-id/6e/0a874dca5a7ff831396ddc0785d939a192efe3.debug fr= om remote target... Reading symbols from target:/usr/lib/debug/.build-id/6e/0a874dca5a7ff831396ddc0785d939a192efe3.d= ebug... ... (gdb) bt #0 0x00007fc9db431aff in poll () from target:/lib/x86_64-linux-gnu/libc.so= .6 #1 0x000055b62ef2593f in poll (__timeout=3D-1, __nfds=3D2, __fds=3D0x7ffe0= 342f520) at /usr/include/x86_64-linux-gnu/bits/poll2.h:41 #2 handle_connections_sockets () at ./sql/mysqld.cc:6207 #3 0x000055b62ef2674d in mysqld_main (argc=3D, argv=3D) at ./sql/mysqld.cc:5656 #4 0x00007fc9db3430b3 in __libc_start_main () from target:/lib/x86_64-linux-gnu/libc.so.6 #5 0x000055b62ef1adae in _start () Full line numbers. And the build-id from the target is read. --=20 You are receiving this mail because: You are on the CC list for the bug.=