From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F9EC3857732; Fri, 4 Aug 2023 13:03:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F9EC3857732 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691154203; bh=1MpkHoys8uvCr398w4pO2bp4OmL2M3if6pC+/1g4wXs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ibCSXVs4Xok0/ju6503WzrVtEQN8JoSmRrWkTS9vCNE5Ru9owaDfuw6qf00wqy4Ip /u+dFN7lZaoJBCW6XXyyTn+vBKvEyvL24v7FNs/hI6DxnCFIiv+wudRmGFyMePrEYu bUEIj263NhOuWOiUp5LbiCcAJSMW1JOkrcLZhKiM= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30712] [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case) Date: Fri, 04 Aug 2023 13:03:23 +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: cvs-commit 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=3D30712 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db44293099e21= 5d6558a8d91b5eaab137218d2e27 commit b44293099e215d6558a8d91b5eaab137218d2e27 Author: Tom de Vries Date: Fri Aug 4 15:02:43 2023 +0200 [gdb/testsuite] Extend gdb.base/index-cache.exp The test-case gdb.base/index-cache.exp uses only one source file, which contains main. While doing "file $exec", in set_initial_language a symbol lookup of "m= ain" is done, causing the symtab containing main to be expanded. Handling of main is special, and a future optimization may skip the loo= kup and expansion. Reliably exercise: - the lookup of main, expanding the symtab containing main, by doing "ptype main", and - the lookup of another symbol, expanding a symtab not containing main,= by: - adding another source file containing function foo, and - doing "ptype foo". This triggered a segfault with target board native-extended-gdbserver, filed as PR symtab/30712, but that seems to be fixed by a previous commit in = this series. Tested on x86_64-linux. Approved-By: Tom Tromey Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30712 --=20 You are receiving this mail because: You are on the CC list for the bug.=