public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Fix printing macros
@ 2022-04-07  1:51 Simon Marchi
  2022-04-07  1:51 ` [PATCH 1/6] gdb/testsuite/dwarf: remove two unused variables Simon Marchi
                   ` (5 more replies)
  0 siblings, 6 replies; 44+ messages in thread
From: Simon Marchi @ 2022-04-07  1:51 UTC (permalink / raw)
  To: gdb-patches

This series fixes some problems with printing macros in the main source
file.  Depending on how the source file path was specified on the
compiler command line, it may or may not work.  More details about that
in patch 5.  Patches before that are preparatory, and patch 6 adds some
tests.

Simon Marchi (6):
  gdb/testsuite/dwarf: remove two unused variables
  gdb/testsuite/dwarf: simplify line number program syntax
  gdb/testsuite/dwarf: don't automatically add directory and file entry
    for DWARF 5
  gdb/testsuite: add "macros" option to gdb_compile
  gdb: prepend comp_dir to symtab name in buildsym_compunit
  gdb/testsuite: add macros test for source files compiled in various
    ways

 gdb/buildsym.c                                |  15 +
 gdb/dwarf2/line-header.h                      |   5 +-
 gdb/testsuite/gdb.base/info-macros.exp        |  14 +-
 gdb/testsuite/gdb.base/macro-source-path.c    |  22 ++
 gdb/testsuite/gdb.base/macro-source-path.exp  |  79 +++++
 gdb/testsuite/gdb.base/macscp.exp             |  11 +-
 gdb/testsuite/gdb.base/style.exp              |  23 +-
 .../gdb.base/until-trailing-insns.exp         |  58 ++--
 gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp      |  28 +-
 .../gdb.dwarf2/dw2-disasm-over-non-stmt.exp   |  56 ++--
 .../gdb.dwarf2/dw2-inline-header-1.exp        |  70 ++--
 .../gdb.dwarf2/dw2-inline-header-2.exp        |  66 ++--
 .../gdb.dwarf2/dw2-inline-header-3.exp        |  66 ++--
 .../gdb.dwarf2/dw2-inline-many-frames.exp     | 168 +++++-----
 .../gdb.dwarf2/dw2-inline-small-func.exp      |  34 +-
 .../gdb.dwarf2/dw2-inline-stepping.exp        |  46 +--
 .../dw2-inline-with-lexical-scope.exp         |  28 +-
 gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp    | 156 ++++-----
 gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp      |  58 ++--
 .../gdb.dwarf2/dw2-line-number-zero.exp       |  60 ++--
 gdb/testsuite/gdb.dwarf2/dw2-lines.exp        |  37 ++-
 .../gdb.dwarf2/dw2-objfile-overlap.exp        |   2 +-
 .../dw2-out-of-range-end-of-seq.exp           |  20 +-
 gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp |  39 +--
 gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp  |  46 +--
 gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp  | 120 +++----
 .../dw2-step-out-of-function-no-stmt.exp      |  36 +--
 .../gdb.dwarf2/dw2-symtab-includes-lookup.exp |   2 +-
 .../gdb.dwarf2/dw2-symtab-includes.exp        |   2 +-
 .../gdb.dwarf2/dw2-vendor-extended-opcode.exp |  14 +-
 gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp |  64 ++--
 .../gdb.dwarf2/imported-unit-bp.exp.tcl       |  50 +--
 .../locexpr-data-member-location.exp          |  50 +--
 gdb/testsuite/gdb.dwarf2/macro-source-path.c  |  20 ++
 .../gdb.dwarf2/macro-source-path.exp          | 299 ++++++++++++++++++
 gdb/testsuite/gdb.linespec/macro-relative.exp |   9 +-
 gdb/testsuite/lib/dwarf.exp                   | 148 ++++++---
 gdb/testsuite/lib/gdb.exp                     |  13 +
 38 files changed, 1260 insertions(+), 774 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/macro-source-path.c
 create mode 100644 gdb/testsuite/gdb.base/macro-source-path.exp
 create mode 100644 gdb/testsuite/gdb.dwarf2/macro-source-path.c
 create mode 100644 gdb/testsuite/gdb.dwarf2/macro-source-path.exp


base-commit: 5f0b6b77f11ca1484b69babd7ab6729ebbc447ee
-- 
2.35.1


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

end of thread, other threads:[~2022-04-21 20:26 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07  1:51 [PATCH 0/6] Fix printing macros Simon Marchi
2022-04-07  1:51 ` [PATCH 1/6] gdb/testsuite/dwarf: remove two unused variables Simon Marchi
2022-04-07 13:51   ` Tom Tromey
2022-04-07  1:51 ` [PATCH 2/6] gdb/testsuite/dwarf: simplify line number program syntax Simon Marchi
2022-04-07 13:52   ` Tom Tromey
2022-04-07 17:10     ` Simon Marchi
2022-04-07  1:51 ` [PATCH 3/6] gdb/testsuite/dwarf: don't automatically add directory and file entry for DWARF 5 Simon Marchi
2022-04-18 16:28   ` Tom Tromey
2022-04-18 17:32     ` Simon Marchi
2022-04-18 19:28       ` Tom Tromey
2022-04-18 20:58         ` Simon Marchi
2022-04-07  1:51 ` [PATCH 4/6] gdb/testsuite: add "macros" option to gdb_compile Simon Marchi
2022-04-07 14:01   ` Tom Tromey
2022-04-07 17:22     ` Simon Marchi
2022-04-07 18:31       ` Tom Tromey
2022-04-07 18:41         ` Simon Marchi
2022-04-07  1:51 ` [PATCH 5/6] gdb: prepend comp_dir to symtab name in buildsym_compunit Simon Marchi
2022-04-07  6:09   ` Eli Zaretskii
2022-04-07 16:44     ` Simon Marchi
2022-04-07 17:04       ` Eli Zaretskii
2022-04-07 17:26         ` Simon Marchi
2022-04-07 19:15           ` Eli Zaretskii
2022-04-07 19:45             ` Simon Marchi
2022-04-08  4:07               ` Eli Zaretskii
2022-04-08 13:54                 ` Simon Marchi
2022-04-09  6:59                   ` Eli Zaretskii
2022-04-18 16:35         ` Tom Tromey
2022-04-18 17:36           ` Simon Marchi
2022-04-18 17:59             ` Pedro Alves
2022-04-18 18:19               ` Simon Marchi
2022-04-18 18:25                 ` Pedro Alves
2022-04-18 20:33                   ` Samuel Thibault
2022-04-18 20:56                     ` Simon Marchi
2022-04-07 15:19   ` Hannes Domani
2022-04-07 18:01     ` Simon Marchi
2022-04-21 10:56       ` Hannes Domani
2022-04-21 20:26         ` Simon Marchi
2022-04-18 16:36   ` Tom Tromey
2022-04-18 20:18     ` Simon Marchi
2022-04-07  1:51 ` [PATCH 6/6] gdb/testsuite: add macros test for source files compiled in various ways Simon Marchi
2022-04-18 16:53   ` Tom Tromey
2022-04-21 18:36     ` Simon Marchi
2022-04-21 18:45       ` Pedro Alves
2022-04-21 18:47         ` Pedro Alves

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