From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C6313858D3C; Tue, 21 Mar 2023 16:16:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C6313858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679415389; bh=zYGkng+W2+ZCqPGQf9AbLHEfdsfKMZj70DJcy5VqunY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nrlMUeOzokDnlzCwddTgt5PC5lkmsY/OaKrbVezwBMK3wgRoOPgrVFBTE2xvIcnXe JEc/yZPBu+VitkX9Jpour8W7zic43hZqtdMZkB/xdwJldIaAka8xrAnMXdBnO/bFLG VdFHAWHyWK3HAFaWR2OS5nM6fYLwObMEMROugmno= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug win32/8591] gdb for Win32 does not handle Microsoft C++ exceptions properly. Date: Tue, 21 Mar 2023 16:16:29 +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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: ASSIGNED 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: cc 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=3D8591 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #2 from Tom Tromey --- I found this: https://devblogs.microsoft.com/oldnewthing/20100730-00/?p=3D13273 I wonder if this default case: default: /* Treat unhandled first chance exceptions specially. */ if (current_event.u.Exception.dwFirstChance) return HANDLE_EXCEPTION_UNHANDLED; debug_printf ("gdb: unknown target exception 0x%08x at %s\n", (unsigned) current_event.u.Exception.ExceptionRecord.ExceptionCode, host_address_to_string ( current_event.u.Exception.ExceptionRecord.ExceptionAddress)); ourstatus->set_stopped (GDB_SIGNAL_UNKNOWN); should instead report HANDLE_EXCEPTION_UNHANDLED all the time? I don't have an MS-compiled program to try unfortunately. One thing I notice is that the current code (no idea about the code from 20 years ago) does return UNHANDLED for first-chance exceptions. So maybe this already works properly. --=20 You are receiving this mail because: You are on the CC list for the bug.=