From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F3AB3858C20; Fri, 8 Dec 2023 18:08:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F3AB3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702058899; bh=RfqPA2TiN3DtFI8pmdmT5giakJxitMM7CZmJQlMuDrs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qJLNYDXJFP+RDTkrvfHOHomrKo9nNAzElxha4/W+cwKUjiTJ3M417pF/2wVO1oovR HL6f849xyy6wcU+9g2u3vkG3DiroGMidKV24BU6o2GsBwrYKaCnGZODdjtb7H0/pNB MD3PIcZKM87PlLVrU/SYDgk3AlWsJiyfiJDUn0pY= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug c++/31128] gdb crashes when trying to print a global variable stub without a running inferior Date: Fri, 08 Dec 2023 18:08:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.1 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=3D31128 --- Comment #1 from Sourceware Commits --- The master branch has been updated by Hannes Domani : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D576745e26c0e= c76a53ba45b20af464628a50b3e4 commit 576745e26c0ec76a53ba45b20af464628a50b3e4 Author: Hannes Domani Date: Fri Dec 8 19:06:14 2023 +0100 Fix printing of global variable stubs if no inferior is running Since 3c45e9f915ae4aeab7312d6fc55a947859057572 gdb crashes when trying to print a global variable stub without a running inferior, because of a missing nullptr-check (the block_scope function took care of that check before it was converted to a method). With this check it works again: ``` (gdb) print s $1 =3D ``` Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31128 Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=