From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org>
To: Tom de Vries <tdevries@suse.de>
Cc: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Initial implementation of Debugger Adapter Protocol
Date: Thu, 05 Jan 2023 08:24:29 -0700 [thread overview]
Message-ID: <87fscpf1hu.fsf@tromey.com> (raw)
In-Reply-To: <16a7949d-4a65-28a4-732e-44e6b99f9478@suse.de> (Tom de Vries's message of "Thu, 5 Jan 2023 12:35:56 +0100")
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> In case you haven't seen it, on IRC someone mentioned:
I didn't.
Tom> diff --git a/gdb/python/lib/gdb/dap/io.py b/gdb/python/lib/gdb/dap/io.py
Tom> index 656ac08b4ec..1d561f07665 100644
Tom> --- a/gdb/python/lib/gdb/dap/io.py
Tom> +++ b/gdb/python/lib/gdb/dap/io.py
Tom> @@ -22,7 +22,7 @@ def read_json(stream):
Tom> """Read a JSON-RPC message from STREAM.
Tom> The decoded object is returned."""
Tom> # First read and parse the header.
Tom> - content_length = None
Tom> + content_length = 0
Tom> while True:
Tom> line = stream.readline()
Tom> line = line.strip()
In this case, though, the protocol request is malformed and I think it's
fine for gdb to just give up.
TBH I am not sure what should officially happen for a malformed request.
I don't think the docs I read address this.
Tom
next prev parent reply other threads:[~2023-01-05 15:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-01 16:30 Tom Tromey via Gdb-patches
2022-09-01 16:38 ` Eli Zaretskii via Gdb-patches
2022-09-12 19:54 ` Tom Tromey via Gdb-patches
2022-09-13 2:26 ` Eli Zaretskii via Gdb-patches
2022-10-06 14:27 ` Tom Tromey via Gdb-patches
2023-01-02 16:54 ` Tom Tromey via Gdb-patches
2023-01-03 8:04 ` Tom de Vries via Gdb-patches
2023-01-03 14:14 ` Tom Tromey via Gdb-patches
2023-01-04 11:59 ` Tom de Vries via Gdb-patches
2023-01-04 12:27 ` Tom de Vries via Gdb-patches
2023-01-05 9:49 ` [PATCH] [gdb/python] Avoid queue.SimpleQueue for python 3.6 Tom de Vries via Gdb-patches
2023-01-05 15:19 ` Tom Tromey via Gdb-patches
2023-01-05 16:34 ` Tom de Vries via Gdb-patches
2023-01-05 17:07 ` Tom Tromey via Gdb-patches
2023-01-05 11:35 ` [PATCH] Initial implementation of Debugger Adapter Protocol Tom de Vries via Gdb-patches
2023-01-05 15:24 ` Tom Tromey via Gdb-patches [this message]
2023-01-05 16:17 ` Tom de Vries via Gdb-patches
2023-01-06 14:12 ` Tom de Vries via Gdb-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fscpf1hu.fsf@tromey.com \
--to=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
--cc=tromey@adacore.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox