From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 412DA3858C62; Sun, 24 Mar 2024 21:17:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 412DA3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711315041; bh=IUn8Wc2IHRh+CVh48v7r/zlLyeZkIM1rvevMwCTn/2Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xLlvqFKElSux1Qz4t9ZAEsflP9o1YdhAJIkW56grwIO+/R6I8O49/gIxXVocvtAY6 SVtVgXVdbdMUkfKcZTwgDGozjjPVXNmMz8/uSMW4tpHiRWEkgDqxAqyguCTlywXicZ IymSu51UXvkLsgOxS0KswGYmaWS3FHPkmpoSKsmk= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31524] Can't start program in Lazarus/fpc with activated debugging Date: Sun, 24 Mar 2024 21:17:20 +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: tromey at sourceware dot org X-Bugzilla-Status: WAITING 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=3D31524 --- Comment #3 from Tom Tromey --- Thanks for the log. I see this: >> TCmdLineDebugger.SendCmdLn "-gdb-set language pascal" ... >> TCmdLineDebugger.SendCmdLn "ptype Shortstring" << TCmdLineDebugger.ReadLn "&"ptype Shortstring\n"" << TCmdLineDebugger.ReadLn "~"type =3D ShortString =3D record \n"" << TCmdLineDebugger.ReadLn "~" length : BYTE;\n"" << TCmdLineDebugger.ReadLn "&"\n\n"" << TCmdLineDebugger.ReadLn "&"Fatal signal: "" << TCmdLineDebugger.ReadLn "&"Segmentation fault"" This output is clearly truncated and definitely a gdb bug. I suspect it could be reproduced with just the executable. If it's not too large, and if it's allowable, could you attach it? Could you say what Pascal compiler you are using? I wonder if maybe a test case with just the Shortstring type would be possible to write -- we'll want a test case for the patch anyway. --=20 You are receiving this mail because: You are on the CC list for the bug.=