From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67A7B3858D1E; Wed, 2 Aug 2023 15:22:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67A7B3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690989767; bh=sXuqs9YHW38ixY3Y9hIm1N6647F5SgtI6FWiDaSUmno=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wEDMWdLQxKc0Lx9RJD5XSD3vi6vuvl6wPEh+mLwoDgkTs1r2GFJqhzgeQOz5HNlN+ uTObKY0jSLnJIL1J4yig66AOodM689VGoCDJNv6NWyRckn4yj9dQVBq14EXzf04Xec inVgll/fM2eM9DvqtTlKsnLFwLgyYvZBa8omxT+o= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug dap/30708] [gdb/dap] DAP support and python 3.4 Date: Wed, 02 Aug 2023 15:22:46 +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: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D30708 --- Comment #3 from Tom de Vries --- Something like this would work: ... diff --git a/gdb/python/py-dap.c b/gdb/python/py-dap.c index 52188406982..7289c5ec25c 100644 --- a/gdb/python/py-dap.c +++ b/gdb/python/py-dap.c @@ -91,8 +91,11 @@ void _initialize_py_interp (); void _initialize_py_interp () { + /* Dap requires the types module, introduced in python 3.5. */ +#if PY_VERSION_HEX >=3D 0x03050000 interp_factory_register ("dap", [] (const char *name) -> interp * { return new dap_interp (name); }); +#endif } ... and if there's a command to list available interpreters, we can check that = one in allow_dap_tests. --=20 You are receiving this mail because: You are on the CC list for the bug.=