public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug dap/31217] New: dap throws exception when trying to rerun session
@ 2024-01-06 16:02 asn at samba dot org
  2024-01-08 23:23 ` [Bug dap/31217] " tromey at sourceware dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: asn at samba dot org @ 2024-01-06 16:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31217

            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 = 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/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-01-22 16:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-06 16:02 [Bug dap/31217] New: dap throws exception when trying to rerun session asn at samba dot org
2024-01-08 23:23 ` [Bug dap/31217] " tromey at sourceware dot org
2024-01-09  8:07 ` asn at samba dot org
2024-01-09  8:08 ` asn at samba dot org
2024-01-09 17:02 ` tromey at sourceware dot org
2024-01-09 20:36 ` asn at samba dot org
2024-01-09 21:20 ` asn at samba dot org
2024-01-10 19:01 ` tromey at sourceware dot org
2024-01-10 20:09 ` tromey at sourceware dot org
2024-01-22 16:00 ` cvs-commit at gcc dot gnu.org
2024-01-22 16:00 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).