From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D27BA3858C78; Tue, 27 Feb 2024 16:56:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D27BA3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709053002; bh=aqUrG7DMLKQfZ9NVYRkjkWf2iizfZQnjK5yp1sirqd4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EWSjDU8if1golfdXyIBxall0Kb0t2KHQO/CL9cGqO8stRUbBo1LJ4ZwVzl6OJ2iMq tW7jsMMH/SP0tFTvPj+VC+66EvhEUx7V41pen18hQQS+dY1MP+LUYjc3DDBL0K0QSQ uB0Q+6oThUpTNYsg/TdOztOMQ92nvaj/LeVI1fvc= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug dap/31354] [gdb/dap] FAIL: gdb.dap/pause.exp: python command failed Date: Tue, 27 Feb 2024 16:56:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: dap X-Bugzilla-Version: HEAD 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=3D31354 --- Comment #4 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da207f6b3a384= 897be1dab081a0a9a206593029de commit a207f6b3a384897be1dab081a0a9a206593029de Author: Tom Tromey Date: Thu Feb 15 13:14:43 2024 -0700 Rewrite "python" command exception handling The "python" command (and the Python implementation of the gdb "source" command) does not handle Python exceptions in the same way as other gdb-facing Python code. In particular, exceptions are turned into a generic error rather than being routed through gdbpy_handle_exception, which takes care of converting to 'quit' as appropriate. I think this was done this way because PyRun_SimpleFile and friends do not propagate the Python exception -- they simply indicate that one occurred. This patch reimplements these functions to respect the general gdb convention here. As a bonus, some Windows-specific code can be removed, as can the _execute_file function. The bulk of this change is tweaking the test suite to match the new way that exceptions are displayed. These changes are largely uninteresting. However, it's worth pointing out the py-error.exp change. Here, the failure changes because the test changes the host charset to something that isn't supported by Python. This then results in a weird error in the new setup. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31354 Acked-By: Tom de Vries Reviewed-By: Eli Zaretskii --=20 You are receiving this mail because: You are on the CC list for the bug.=