From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E249384640E; Wed, 24 Apr 2024 22:09:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E249384640E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713996545; bh=hYtymvVXQpl9zklLH2UfI2ON4r1u+n2mcIE+WKBlaqc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aGoKYHgFdop9CwMV5pQsCoqc17sAV/INlO70a4pfPPo1JKHL7VJUJkDAjdQWL2kg7 6nKTFXV1R3IgGO9qCdsqj0GXbKujsOqaVyR/ZZdliJ/HWA1aJwBGesFyu8s8oAq/dt SLn3XTWTiC+PB+VyRj+DVtHHIzGM2gHD6pEYQsW0= From: "dominik.b.czarnota+bugzilla at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/31669] wrong "info symbol" output, symbol shadowing, __dso_handle Date: Wed, 24 Apr 2024 22:09: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: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominik.b.czarnota+bugzilla at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31669 --- Comment #3 from Disconnect3d --- Also: ``` pwndbg> info symbol 0x402008+2748 __dso_handle + 2748 in section .rodata pwndbg> info symbol 0x402008+2749 No symbol matches 0x402008+2749. pwndbg> info symbol 0x402008+2750 No symbol matches 0x402008+2750. pwndbg> info symbol 0x402008+2751 No symbol matches 0x402008+2751. pwndbg> info symbol 0x402008+2752 __GNU_EH_FRAME_HDR in section .eh_frame_hdr ``` It seems that GDB creates symbols for each address past a given symbol addr= ess until 4 bytes before another symbol? It would be nice to be able to: 1) disable this behavior 2) have a way to query for symbols around a given address, e.g. 0x402008+27= 51 should show us the symbols/addresses of `__dso_handle` and `__GNU_EH_FRAME_= HDR` --=20 You are receiving this mail because: You are on the CC list for the bug.=