public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug dap/31036] New: More type checking in DAP
@ 2023-11-06 18:55 tromey at sourceware dot org
2024-05-10 18:08 ` [Bug dap/31036] " cvs-commit at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: tromey at sourceware dot org @ 2023-11-06 18:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31036
Bug ID: 31036
Summary: More type checking in DAP
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: dap
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
The DAP implementation tries to type-check the JSON objects
that are arriving. This also helps keep the implementation
correct.
Some things, like a JSON "Source" object, aren't checked.
And some things are checked via an ad hoc procedure -- for
instance some breakpoint objects are checked by passing them
to a second no-op function just to get type-checking.
Perhaps this could be done more nicely by having a namedtuple
argument. It would have to be an extension so that unexpected
keywords could be ignored. And some layer would have to transform
from a JSON dict to a namedtuple.
There are also some spots that just have Sequence as the type,
these could be fixed.
Finally, maybe it would make sense to type-check the results of
DAP calls, as an added safety measure. We had at least one bug
along these lines -- but the danger here is that the failures
may depend on the details of the inferior and not be visible in
ordinary testing.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug dap/31036] More type checking in DAP
2023-11-06 18:55 [Bug dap/31036] New: More type checking in DAP tromey at sourceware dot org
@ 2024-05-10 18:08 ` cvs-commit at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-10 18:08 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31036
--- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=674dea05e3bf2a4b68820adfa4f9e9510b4c1c8c
commit 674dea05e3bf2a4b68820adfa4f9e9510b4c1c8c
Author: Tom Tromey <tromey@adacore.com>
Date: Mon Apr 29 12:46:17 2024 -0600
Remove FIXME from DAP
This patch removes one of the few DAP "FIXME" comments. This
particular comment is already covered by PR dap/31036.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-10 18:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 18:55 [Bug dap/31036] New: More type checking in DAP tromey at sourceware dot org
2024-05-10 18:08 ` [Bug dap/31036] " cvs-commit at gcc dot gnu.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).