Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v2 00/19] Move C++ support code out of .y files
@ 2026-09-05  4:23 simon.marchi
  2026-09-05  4:23 ` [PATCH v2 01/19] gdb/ada-exp-parser: remove name_info struct simon.marchi
                   ` (18 more replies)
  0 siblings, 19 replies; 21+ messages in thread
From: simon.marchi @ 2026-09-05  4:23 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

From: Simon Marchi <simon.marchi@polymtl.ca>

Hi,

This is v2 of this series:

    https://inbox.sourceware.org/gdb-patches/20260904170338.1643894-1-simon.marchi@polymtl.ca

The new version addresses the comments from Kevin.

   - Patch 3 is new, to remove the YY_NULL to YY_NULLPTR substitution.

   - Patch 13, previously 12, update comment to refer to
     ada-exp-parser.c instead of ada-exp-parser.y.

   - Patch 19 is new, to wire up "set debug parser" with the Modula-2
     and Pascal parsers, so that m2_yydebug and pascal_yydebug are used.

Simon Marchi (19):
  gdb/ada-exp-parser: remove name_info struct
  gdb: replace parse_type macros with functions
  gdb: suffix flex/bison output files with -gen.c
  gdb: remove YY_NULL to YY_NULLPTR substitution
  gdb: move parser output post-processing to a script
  gdb: let the parser and lexer generators prefix their symbols
  gdb: separate cp-name-parser's symbol prefix with an underscore
  gdb: make $(YACC) and $(FLEX) generate headers
  gdb: add check for stale build generated files
  gdb: move cp-name-parser.y's support code to cp-name-parser.c
  gdb: rename LANG-exp.y to LANG-exp-parser.y
  gdb: move c-exp-parser.y's support code to c-exp-parser.c
  gdb: move ada-exp-parser.y's support code to ada-exp-parser.c
  gdb: move d-exp-parser.y's support code to d-exp-parser.c
  gdb: move f-exp-parser.y's support code to f-exp-parser.c
  gdb: move go-exp-parser.y's support code to go-exp-parser.c
  gdb: move m2-exp-parser.y's support code to m2-exp-parser.c
  gdb: move p-exp-parser.y's support code to p-exp-parser.c
  gdb: honor "set debug parser" in the Modula-2 and Pascal parsers

 gdb/.gitignore                    |   27 +-
 gdb/Makefile.in                   |  194 +-
 gdb/ada-exp-parser.c              | 1351 +++++++++++
 gdb/ada-exp-parser.h              |  427 ++++
 gdb/ada-exp-parser.y              |  845 +++++++
 gdb/ada-exp.h                     |    2 +-
 gdb/ada-exp.y                     | 2019 ----------------
 gdb/ada-lang.c                    |    1 +
 gdb/ada-lang.h                    |    2 -
 gdb/ada-lex.l                     |  431 +---
 gdb/c-exp-parser.c                | 1696 ++++++++++++++
 gdb/c-exp-parser.h                |  182 ++
 gdb/c-exp-parser.y                | 1858 +++++++++++++++
 gdb/c-exp.y                       | 3626 -----------------------------
 gdb/c-lang.h                      |    6 -
 gdb/cp-name-parser.c              | 1050 +++++++++
 gdb/cp-name-parser.h              |  130 ++
 gdb/cp-name-parser.y              | 1120 +--------
 gdb/cp-support.c                  |    4 +-
 gdb/{d-exp.y => d-exp-parser.c}   |  738 +-----
 gdb/d-exp-parser.h                |   83 +
 gdb/d-exp-parser.y                |  600 +++++
 gdb/d-lang.c                      |    1 +
 gdb/d-lang.h                      |    4 -
 gdb/{f-exp.y => f-exp-parser.c}   |  982 +-------
 gdb/f-exp-parser.h                |  102 +
 gdb/f-exp-parser.y                |  766 ++++++
 gdb/f-lang.c                      |    9 +
 gdb/{go-exp.y => go-exp-parser.c} |  736 +-----
 gdb/go-exp-parser.h               |   59 +
 gdb/go-exp-parser.y               |  603 +++++
 gdb/go-lang.c                     |    9 +
 gdb/language.c                    |    1 +
 gdb/m2-exp-parser.c               |  491 ++++
 gdb/m2-exp-parser.h               |   67 +
 gdb/{m2-exp.y => m2-exp-parser.y} |  467 +---
 gdb/m2-lang.c                     |    9 +
 gdb/macroexp.c                    |    6 +-
 gdb/{p-exp.y => p-exp-parser.c}   |  930 +-------
 gdb/p-exp-parser.h                |   84 +
 gdb/p-exp-parser.y                |  752 ++++++
 gdb/p-lang.c                      |    9 +
 gdb/parser-defs.h                 |    8 +
 gdb/post-process-parser-output.sh |   66 +
 gdb/yy-remap.h                    |   96 -
 45 files changed, 11794 insertions(+), 10855 deletions(-)
 create mode 100644 gdb/ada-exp-parser.c
 create mode 100644 gdb/ada-exp-parser.h
 create mode 100644 gdb/ada-exp-parser.y
 delete mode 100644 gdb/ada-exp.y
 create mode 100644 gdb/c-exp-parser.c
 create mode 100644 gdb/c-exp-parser.h
 create mode 100644 gdb/c-exp-parser.y
 delete mode 100644 gdb/c-exp.y
 create mode 100644 gdb/cp-name-parser.c
 create mode 100644 gdb/cp-name-parser.h
 rename gdb/{d-exp.y => d-exp-parser.c} (58%)
 create mode 100644 gdb/d-exp-parser.h
 create mode 100644 gdb/d-exp-parser.y
 rename gdb/{f-exp.y => f-exp-parser.c} (53%)
 create mode 100644 gdb/f-exp-parser.h
 create mode 100644 gdb/f-exp-parser.y
 rename gdb/{go-exp.y => go-exp-parser.c} (59%)
 create mode 100644 gdb/go-exp-parser.h
 create mode 100644 gdb/go-exp-parser.y
 create mode 100644 gdb/m2-exp-parser.c
 create mode 100644 gdb/m2-exp-parser.h
 rename gdb/{m2-exp.y => m2-exp-parser.y} (53%)
 rename gdb/{p-exp.y => p-exp-parser.c} (50%)
 create mode 100644 gdb/p-exp-parser.h
 create mode 100644 gdb/p-exp-parser.y
 create mode 100755 gdb/post-process-parser-output.sh
 delete mode 100644 gdb/yy-remap.h


base-commit: 002e6fb956c0be93efc91a8c16077eb3d4259dfc
-- 
2.55.0


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

end of thread, other threads:[~2026-09-08 18:28 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-05  4:23 [PATCH v2 00/19] Move C++ support code out of .y files simon.marchi
2026-09-05  4:23 ` [PATCH v2 01/19] gdb/ada-exp-parser: remove name_info struct simon.marchi
2026-09-05  4:23 ` [PATCH v2 02/19] gdb: replace parse_type macros with functions simon.marchi
2026-09-05  4:23 ` [PATCH v2 03/19] gdb: suffix flex/bison output files with -gen.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 04/19] gdb: remove YY_NULL to YY_NULLPTR substitution simon.marchi
2026-09-05  4:23 ` [PATCH v2 05/19] gdb: move parser output post-processing to a script simon.marchi
2026-09-05  4:23 ` [PATCH v2 06/19] gdb: let the parser and lexer generators prefix their symbols simon.marchi
2026-09-05  4:23 ` [PATCH v2 07/19] gdb: separate cp-name-parser's symbol prefix with an underscore simon.marchi
2026-09-05  4:23 ` [PATCH v2 08/19] gdb: make $(YACC) and $(FLEX) generate headers simon.marchi
2026-09-05  4:23 ` [PATCH v2 09/19] gdb: add check for stale build generated files simon.marchi
2026-09-05  4:23 ` [PATCH v2 10/19] gdb: move cp-name-parser.y's support code to cp-name-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 11/19] gdb: rename LANG-exp.y to LANG-exp-parser.y simon.marchi
2026-09-05  4:23 ` [PATCH v2 12/19] gdb: move c-exp-parser.y's support code to c-exp-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 13/19] gdb: move ada-exp-parser.y's support code to ada-exp-parser.c simon.marchi
2026-09-08 18:28   ` Kevin Buettner
2026-09-05  4:23 ` [PATCH v2 14/19] gdb: move d-exp-parser.y's support code to d-exp-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 15/19] gdb: move f-exp-parser.y's support code to f-exp-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 16/19] gdb: move go-exp-parser.y's support code to go-exp-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 17/19] gdb: move m2-exp-parser.y's support code to m2-exp-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 18/19] gdb: move p-exp-parser.y's support code to p-exp-parser.c simon.marchi
2026-09-05  4:23 ` [PATCH v2 19/19] gdb: honor "set debug parser" in the Modula-2 and Pascal parsers simon.marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox