From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DBC7C3858C52; Mon, 10 Apr 2023 14:41:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBC7C3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681137708; bh=FNR2jsvPT1RiBE7aom31Uc6sK666A9EIwSaGb8uREfQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LGIUCKVibIfncBDiHSXRJ/DLQIggBByrpwTqHTZtNv/WHRYcxGIMXcstTpAMBxs12 zhGFguZO/TlL/qsYjAxmmNKfxgp9JK0MmQDvp4A6tA3D07Dvgu4ZXBpdk0H6eDrNgI OW45K+mQIKg2Zcnp8w5jzd6k10UAsrwZ0KfXI5/Y= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug win32/30255] GDB on Windows cannot retrieve a stacktrace when a NULL function pointer is called Date: Mon, 10 Apr 2023 14:41:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: win32 X-Bugzilla-Version: 13.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: 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=3D30255 --- Comment #7 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da0f6c61c9ab9= 98cd77b0899a4bdea9576d6d775f commit a0f6c61c9ab998cd77b0899a4bdea9576d6d775f Author: Tom Tromey Date: Tue Mar 21 13:40:03 2023 -0600 Handle unwinding from SEGV on Windows PR win32/30255 points out that a call to a NULL function pointer will leave gdb unable to "bt" on Windows. I tracked this down to the amd64 windows unwinder. If we treat this scenario as if it were a leaf function, unwinding works fine. I'm not completely sure this patch is the best way. I considered having it check for 'pc=3D=3D0' -- but then I figured this could affect any inaccessible PC, not just the special 0 value. No test case because I can't run dejagnu tests on Windows. I tested this by hand using the test case in the bug. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30255 --=20 You are receiving this mail because: You are on the CC list for the bug.=