public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 00/11] Fix frame-less expression evaluation in DAP
@ 2023-05-04 14:21 Tom Tromey
  2023-05-04 14:21 ` [PATCH 01/11] Avoid forward declaration in parse.c Tom Tromey
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: Tom Tromey @ 2023-05-04 14:21 UTC (permalink / raw)
  To: gdb-patches

In DAP, an evaluation request without a frame ID should be done at the
global scope.  This series implements this.  Most of the series is
minor cleanups to the parser API, to make the final code a bit
cleaner.

Regression tested on x86-64 Fedora 36.

---
Tom Tromey (11):
      Avoid forward declaration in parse.c
      Move innermost_block_tracker to expression.h
      Introduce and use parser flags
      Simplify parser_state constructor
      Boolify parser_state::comma_terminates
      Rearrange parser_state
      Add PARSER_DEBUG flag
      Add PARSER_LEAVE_BLOCK_ALONE flag
      Add flags to parse_and_eval
      Add global_context parameter to gdb.parse_and_eval
      Handle DAP evaluate request without a frame ID

 gdb/NEWS                              |  4 ++
 gdb/ada-exp.y                         |  2 +-
 gdb/ax-gdb.c                          |  3 +-
 gdb/breakpoint.c                      |  3 +-
 gdb/c-exp.y                           |  2 +-
 gdb/d-exp.y                           |  2 +-
 gdb/doc/python.texi                   |  7 ++-
 gdb/eval.c                            |  7 +--
 gdb/expression.h                      | 78 ++++++++++++++++++++++++++--
 gdb/f-exp.y                           |  2 +-
 gdb/go-exp.y                          |  2 +-
 gdb/parse.c                           | 97 ++++++++++++++++-------------------
 gdb/parser-defs.h                     | 73 ++++++--------------------
 gdb/printcmd.c                        |  5 +-
 gdb/python/lib/gdb/dap/evaluate.py    |  4 +-
 gdb/python/python.c                   | 28 +++++++---
 gdb/rust-parse.c                      |  2 +-
 gdb/testsuite/gdb.dap/frameless.c     | 24 +++++++++
 gdb/testsuite/gdb.dap/frameless.exp   | 62 ++++++++++++++++++++++
 gdb/testsuite/gdb.python/py-value.c   |  3 ++
 gdb/testsuite/gdb.python/py-value.exp |  5 ++
 gdb/tracepoint.c                      | 10 ++--
 gdb/value.h                           |  2 +-
 23 files changed, 288 insertions(+), 139 deletions(-)
---
base-commit: 3539414584be0094b0a4fe56dfd64ea79d802edc
change-id: 20230504-frameless-2cafb628e8d4

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


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

end of thread, other threads:[~2023-05-23 20:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-04 14:21 [PATCH 00/11] Fix frame-less expression evaluation in DAP Tom Tromey
2023-05-04 14:21 ` [PATCH 01/11] Avoid forward declaration in parse.c Tom Tromey
2023-05-04 14:21 ` [PATCH 02/11] Move innermost_block_tracker to expression.h Tom Tromey
2023-05-04 14:21 ` [PATCH 03/11] Introduce and use parser flags Tom Tromey
2023-05-04 14:21 ` [PATCH 04/11] Simplify parser_state constructor Tom Tromey
2023-05-04 14:21 ` [PATCH 05/11] Boolify parser_state::comma_terminates Tom Tromey
2023-05-04 14:21 ` [PATCH 06/11] Rearrange parser_state Tom Tromey
2023-05-04 14:21 ` [PATCH 07/11] Add PARSER_DEBUG flag Tom Tromey
2023-05-04 14:21 ` [PATCH 08/11] Add PARSER_LEAVE_BLOCK_ALONE flag Tom Tromey
2023-05-04 14:21 ` [PATCH 09/11] Add flags to parse_and_eval Tom Tromey
2023-05-04 14:21 ` [PATCH 10/11] Add global_context parameter to gdb.parse_and_eval Tom Tromey
2023-05-04 14:54   ` Eli Zaretskii
2023-05-23 20:17     ` Tom Tromey
2023-05-04 14:21 ` [PATCH 11/11] Handle DAP evaluate request without a frame ID Tom Tromey
2023-05-23 20:17 ` [PATCH 00/11] Fix frame-less expression evaluation in DAP Tom Tromey

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