From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AB7A3858C5F; Sat, 6 Jan 2024 16:02:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AB7A3858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704556978; bh=gQ2WRvMlTzbqtFdFOwSjaz6xc7zIrSQk050lyUZKE0w=; h=From:To:Subject:Date:From; b=H5fk4/hCPq8X78/6Iuj84JL+Vpv3725/vN57kiMZgPK7/FBQ4DWJQx8Ei107vNrie wme7QkiikW0cWTy23Kz8waXhRhF6A4tKac0oxq5HGl/2Rz9snmfii+e8dJ++VK/THr vgZPtv2KktTAxe2G/Kv0djsZd0K1nE5us3gf8HPo= From: "asn at samba dot org" To: gdb-prs@sourceware.org Subject: [Bug dap/31217] New: dap throws exception when trying to rerun session Date: Sat, 06 Jan 2024 16:02:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: dap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asn at samba dot org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D31217 Bug ID: 31217 Summary: dap throws exception when trying to rerun session Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: dap Assignee: unassigned at sourceware dot org Reporter: asn at samba dot org Target Milestone: --- I've configured nvim-dap for gdb [1] and when try to use require('dap').run_last() to restart the session, I run into an exception. Exception in thread DAP: Traceback (most recent call last): File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/usr/lib64/python3.12/threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "/usr/share/gdb/python/gdb/dap/startup.py", line 51, in really_start= _dap target() File "/usr/share/gdb/python/gdb/dap/startup.py", line 73, in ensure_dap_thread return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/gdb/python/gdb/dap/server.py", line 117, in main_loop cmd =3D read_json(self.in_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/gdb/python/gdb/dap/io.py", line 37, in read_json while len(data) < content_length: ^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '<' not supported between instances of 'int' and 'NoneType' Breakpoint 1 at 0x5096: file ../../source3/utils/smbget.c, line 119. content_length gets initialized with None [1] https://blog.cryptomilk.org/2024/01/02/neovim-dap-and-gdb-14-1/ --=20 You are receiving this mail because: You are on the CC list for the bug.=