From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 37C1F38582A1; Wed, 19 Jul 2023 12:48:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37C1F38582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689770911; bh=EtO8t4jNxmlpUtqtukJLSHSLtdiGqRgWBwDqthFU6lY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V2s0DPjbidR0hLr82kxAdz7UTATfMfn8c2qUBz3pYdlXdJ+9W8NC0H2c6vdX20YTu bJDYpUDwNRN8FlyGLw2IF1jn0W8kDmMoTg4iud7YX1mixPKbVl5tGsnLzkGajtVvoj DICb14wvfYknIL+KsjU2tZl2FnfltmBAs3bj2AX8= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/25857] Partial symtab expansion state influences lookup results Date: Wed, 19 Jul 2023 12:48:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.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: 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=3D25857 --- Comment #3 from Tom de Vries --- Hmm, the other problem is that readnow expands the symtabs in the order of = the debug info, while selective expansion of symtabs results in a list with expansion order. So, with this example: ... $ cat main.c int main (void) { return 0; } $ cat test.c static int aaa =3D 1; static int test1 =3D 1; $ cat test-2.c static int aaa =3D 2; static int test2 =3D 2; ... and: ... $ gcc -g main.c test.c test-2.c ... we still have: ... $ gdb -q -batch a.out -ex "print test1" -ex "print test2" -ex "print aaa" $1 =3D 1 $2 =3D 2 $3 =3D 2 $ gdb -q -batch a.out -ex "print test2" -ex "print test1" -ex "print aaa" $1 =3D 2 $2 =3D 1 $3 =3D 1 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=