From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id TxruI25OrWXaDwMAWB0awg (envelope-from ) for ; Sun, 21 Jan 2024 12:03:42 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=startmail.com header.i=@startmail.com header.a=rsa-sha256 header.s=2020-07 header.b=IB7bv0LF; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 873131E0C3; Sun, 21 Jan 2024 12:03:42 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 464041E092 for ; Sun, 21 Jan 2024 12:03:40 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4B80B3858C5E for ; Sun, 21 Jan 2024 17:03:39 +0000 (GMT) Received: from mx-out1.startmail.com (mx-out1.startmail.com [145.131.90.139]) by sourceware.org (Postfix) with ESMTPS id 6F1763858C56 for ; Sun, 21 Jan 2024 17:03:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F1763858C56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=akselmo.dev Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=akselmo.dev ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F1763858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=145.131.90.139 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705856594; cv=none; b=vsj7oG6XHOneezgmvv+LdDImW540AYWLmdVP9MZ6ZzKyy1PZ7N+tK2IFA4WoEr8UVtP1oXXJUGKqo/D5SE5u/JPK+mZIXbZvANZs7OHhvTao/ARYfGGjiew1tpFao2195b+jWpwfnhiEGb+ysvBTSYh1gu267RhtVod8YnLbr/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705856594; c=relaxed/simple; bh=iQhGGh9SVWL/BbqFgJjz2K0bdSJauQ0lbxrUaHGwXJQ=; h=From:DKIM-Signature:To:Subject:Date:Message-ID:Mime-Version; b=QrF8zVT1FkCYR0MFa+vVB5Wndl1YJj14q2BWw9PYieybYet3iRHZ7S6wVSz6N9stmccLX6hQU8/KU7bUuOQ9KzLZBKoA17EG5itf7TPRmxhPf/IFBuj8UUlRWf42/upBAxMM5nniHRSe9kBGlbIlkjgG2z/xm9jlD+znwZ/Zjtk= ARC-Authentication-Results: i=1; server2.sourceware.org From: Akseli Lahtinen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startmail.com; s=2020-07; t=1705856591; bh=rXGAPtXi0rw18sPHZxW58MbW3q2Iir4EolfM0MBVjpg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding:Content-Type:From:Subject: To:Date:Sender:Content-Type:Content-Transfer-Encoding: Content-Disposition:Mime-Version:Reply-To:In-Reply-To:References: Message-Id:Autocrypt; b=IB7bv0LFUPpK3jLDD/7y8kRwgZSu5vLlLXZPF/axHr4IntHPvJxV4cedkUF21GukX TEufbIRJPsBD/tR2TL8A1Fv5EtGJPqI/wOljye3zHzp7b8OYKB3UnpfGqzBcdP6gbI KyM8cAlRoDP2bCC4C0bcLfrpMYNp4lmYUfJ18sW2CLv4mGD62Pdd2fdaTt9BGvTT3i S44hePea4tPvmFmrFSveMtVCq4/OK3BLoWWjCAdk7Gor/9vf8xUOETrtY8uYE4gEUC LvYUjtTwZAqq7zpGpHQSDzxFPRnNCmdV1Ag8mgZpElfY/bdhQvHTwNSyGBUVnYa2IP ZcITMvulYhX4w== To: Tom Tromey Cc: gdb@sourceware.org Subject: Re: Help with setting up DAP for Kate text editor Date: Sun, 21 Jan 2024 19:03:10 +0200 Message-ID: <3020567.otQIP8See3@fedora-desktop> In-Reply-To: <878r4ong93.fsf@tromey.com> References: <170539709501.26.7046470475324272764@startmail.com> <878r4ong93.fsf@tromey.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hey, sorry for the late response. I have requested an account to the sourceware bugzilla so I can create a separate bug report, but here's the logs I got from running the command. ```log +++ cd /home/akseli/Repositories/artificial-rage/build/ >>> Working directory /home/akseli/Repositories/artificial-rage/build. +++ file /home/akseli/Repositories/artificial-rage/build/ArtificialRage WROTE: <<<{"type": "event", "event": "module", "body": {"reason": "new", "module": {"id": "/home/akseli/Repositories/artificial-rage/build/ ArtificialRage", "name": "/home/akseli/Repositories/artificial-rage/build/ ArtificialRage", "path": "/home/akseli/Repositories/artificial-rage/build/ ArtificialRage"}}}>>> >>> Reading symbols from /home/akseli/Repositories/artificial-rage/build/ ArtificialRage... READ: <<<{"arguments": null, "command": "configurationDone", "seq": 2, "type": "request"}>>> Traceback (most recent call last): File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command body = _commands[params["command"]](**args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: gdb.dap.server.request..wrap..non_sync_call() argument after ** must be a mapping, not NoneType WROTE: <<<{"request_seq": 2, "type": "response", "command": "configurationDone", "success": false, "message": "gdb.dap.server.request..wrap..non_sync_call() argument after ** must be a mapping, not NoneType"}>>> READ: <<<{"arguments": null, "command": "configurationDone", "seq": 3, "type": "request"}>>> Traceback (most recent call last): File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command body = _commands[params["command"]](**args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: gdb.dap.server.request..wrap..non_sync_call() argument after ** must be a mapping, not NoneType WROTE: <<<{"request_seq": 3, "type": "response", "command": "configurationDone", "success": false, "message": "gdb.dap.server.request..wrap..non_sync_call() argument after ** must be a mapping, not NoneType"}>>> READ: <<<{"arguments": null, "command": "configurationDone", "seq": 4, "type": "request"}>>> Traceback (most recent call last): File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command body = _commands[params["command"]](**args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: gdb.dap.server.request..wrap..non_sync_call() argument after ** must be a mapping, not NoneType WROTE: <<<{"request_seq": 4, "type": "response", "command": "configurationDone", "success": false, "message": "gdb.dap.server.request..wrap..non_sync_call() argument after ** must be a mapping, not NoneType"}>>> READ: <<<{"arguments": {}, "command": "disconnect", "seq": 5, "type": "request"}>>> WROTE: <<<{"request_seq": 5, "type": "response", "command": "disconnect", "success": true}>>> +++ quit ``` Thanks! - Akseli On Wednesday 17 January 2024 17:15:04 EET you wrote: > >>>>> Akseli Lahtinen writes: > > Hey, I am trying to set up DAP for Kate text editor with following config > > [...] > > > It starts running fine and can find breakpoints, > > but when I try to start the debugging process, I get following error: > > > > error on response: > > > > gdb.dap.server.request..wrap..non_sync_call() argument > > after > > > > ** must be a mapping, not NoneType > > Is that the complete text? > > If so you can you add the arguments -iex "set debug dap-log-file /tmp/log" > to the gdb invocation, reproduce the problem, and then send the log file? > (Opening a new bug would be best.) > > It's probably a bug in the gdb DAP implementation. It may depend on the > version of Python your gdb happens to be linked against. > > thanks, > Tom