From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C0013858D32; Thu, 28 Mar 2024 22:31:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C0013858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711665093; bh=xqn+uOo0M6B8TN2vy3X/dTtGBANMcq195Y6uzOcGUPw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q6c4gToSN974S9067PbLFU2Fhg60j+btId9+V6nqha//fiG+rquKGNDZoHTQ1pvy0 cP5CL9xAkmtfiWk2xVzByXSyE81KVXeQuC6L09q1YqifO07kravcEKfW853x9N1my+ BvJtZYGw1GaUYkS+Pv1doZmQwk9oR7ry57gmIoQI= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31524] Can't start program in Lazarus/fpc with activated debugging Date: Thu, 28 Mar 2024 22:31:29 +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: critical 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: tromey 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=3D31524 --- Comment #14 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dedada1692cc4= 558138756eea99532d83b7b894e0 commit edada1692cc4558138756eea99532d83b7b894e0 Author: Tom Tromey Date: Wed Mar 27 10:34:46 2024 -0600 Make pascal_language::print_type handle varstring=3D=3Dnullptr PR gdb/31524 points out a crash when pascal_language::print_type is called with varstring=3D=3Dnullptr. This crash is a regression arising from the printf/pager rewrite -- that indirectly removed a NULL check from gdb's "puts". This patch instead fixes the problem by adding a check to print_type. Passing nullptr here seems to be expected in other places (e.g., there is a call to type_print like this in expprint.c), and other implementations of this method (or related helpers) explicitly check for NULL. I didn't write a test case for this because it seemed like overkill for a Pascal bug that only occurs with -i=3Dmi. However, if you want one, let me know and I will do it. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31524 Approved-By: John Baldwin --=20 You are receiving this mail because: You are on the CC list for the bug.=