public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3]  DAP: Handle "stepOut" request in outermost frame
@ 2024-06-01 16:16 Johan Sternerup
  2024-06-01 16:16 ` [PATCH 1/3] DAP: Allow for deferring stop events from gdb thread Johan Sternerup
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Johan Sternerup @ 2024-06-01 16:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: tom, Johan Sternerup

Add support for stepping commands to be run as background tasks so that
immediate errors can be caught and reported back to the client.

Specifically, make use of this for "stepOut" so that in the case of trying to
send a "stepOut" request in the outermost frame we can now report the error back
to the client. Then the client knows that it should still expect the inferior to
be stopped and should not wait for a stoppedEvent.

Johan Sternerup (3):
  DAP: Allow for deferring stop events from gdb thread
  DAP: Allow gdb exception in exec_and_log to propagate
  DAP: Handle "stepOut" request in outermost frame

 gdb/python/lib/gdb/dap/events.py   |  8 ++---
 gdb/python/lib/gdb/dap/next.py     |  4 +--
 gdb/python/lib/gdb/dap/server.py   | 54 +++++++++++++++++++++++++++---
 gdb/python/lib/gdb/dap/startup.py  |  9 +++--
 gdb/testsuite/gdb.dap/step-out.exp | 11 ++++++
 5 files changed, 72 insertions(+), 14 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH v2 0/3] DAP: Handle "stepOut" request in outermost frame
@ 2024-04-29 19:43 Johan Sternerup
  2024-04-29 19:43 ` [PATCH 1/3] DAP: Allow for deferring stop events from gdb thread Johan Sternerup
  0 siblings, 1 reply; 11+ messages in thread
From: Johan Sternerup @ 2024-04-29 19:43 UTC (permalink / raw)
  To: gdb-patches; +Cc: tom, Johan Sternerup

Second version of patchset rewritten so that the underlying "finish"
command is run as a background task so that any immediate error may be
captured immediately and reported back to the client in the response.

Johan Sternerup (3):
  DAP: Allow for deferring stop events from gdb thread
  DAP: Allow gdb exception in exec_and_log to propagate
  DAP: Handle "stepOut" request in outermost frame

 gdb/python/lib/gdb/dap/events.py   |  8 ++---
 gdb/python/lib/gdb/dap/next.py     |  4 +--
 gdb/python/lib/gdb/dap/server.py   | 56 +++++++++++++++++++++++++++---
 gdb/python/lib/gdb/dap/startup.py  |  9 +++--
 gdb/testsuite/gdb.dap/step-out.exp | 11 ++++++
 5 files changed, 74 insertions(+), 14 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-06-06 17:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-01 16:16 [PATCH v3 0/3] DAP: Handle "stepOut" request in outermost frame Johan Sternerup
2024-06-01 16:16 ` [PATCH 1/3] DAP: Allow for deferring stop events from gdb thread Johan Sternerup
2024-06-01 16:16 ` [PATCH 2/3] DAP: Allow gdb exception in exec_and_log to propagate Johan Sternerup
2024-06-01 16:16 ` [PATCH 3/3] DAP: Handle "stepOut" request in outermost frame Johan Sternerup
2024-06-04 14:01 ` [PATCH v3 0/3] " Tom Tromey
2024-06-05 13:54   ` Johan Sternerup
2024-06-05 16:01     ` Tom Tromey
2024-06-06 17:03       ` Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2024-04-29 19:43 [PATCH v2 " Johan Sternerup
2024-04-29 19:43 ` [PATCH 1/3] DAP: Allow for deferring stop events from gdb thread Johan Sternerup
2024-05-15 19:47   ` Tom Tromey
2024-05-16 19:48     ` Johan Sternerup

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).