public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] Fix printing macros
@ 2022-04-28  3:35 Simon Marchi
  2022-04-28  3:35 ` [PATCH v3 1/7] gdb: introduce symtab_create_debug_printf Simon Marchi
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Simon Marchi @ 2022-04-28  3:35 UTC (permalink / raw)
  To: gdb-patches

Hi,

This is v3 of

  https://sourceware.org/pipermail/gdb-patches/2022-April/188230.html

This new attempt uses an approach similar to v2 (use complete paths to
identify symtabs/subfiles and macro_source_files).  But instead
modifying the existing filename/name fields of symtab and subfile, and
therefore causing important UI changes, this new version adds the
information in a new field.

Patches 3 and 4 are preparatory.  Patch 6 removes some code that I
believe is made obsolete by patch 5.

Simon Marchi (7):
  gdb: introduce symtab_create_debug_printf
  gdb: add debug prints in buildsym.c
  gdb/dwarf: pass compilation directory to line header
  gdb/dwarf: pass a file_entry to line_header::file_file_name
  gdb: add "id" fields to identify symtabs and subfiles
  gdb: remove code to prepend comp dir in
    buildsym_compunit::start_subfile
  gdb/testsuite: add macros test for source files compiled in various
    ways

 gdb/buildsym-legacy.c                         |   4 +-
 gdb/buildsym.c                                |  41 +-
 gdb/buildsym.h                                |  26 +-
 gdb/ctfread.c                                 |   2 +-
 gdb/dwarf2/cu.c                               |  17 +-
 gdb/dwarf2/line-header.c                      |  57 +--
 gdb/dwarf2/line-header.h                      |  40 +-
 gdb/dwarf2/macro.c                            |  16 +-
 gdb/dwarf2/read.c                             |  80 ++--
 gdb/elfread.c                                 |  15 +-
 gdb/jit.c                                     |   3 +-
 gdb/macroscope.c                              |   2 +-
 gdb/mdebugread.c                              |   2 +-
 gdb/minsyms.c                                 |  16 +-
 gdb/psymtab.c                                 |  14 +-
 gdb/symfile.c                                 |  26 +-
 gdb/symfile.h                                 |   3 +-
 gdb/symtab.h                                  |  25 +-
 gdb/testsuite/gdb.base/macro-source-path.c    |  22 +
 gdb/testsuite/gdb.base/macro-source-path.exp  |  87 ++++
 .../gdb.dwarf2/dw2-compdir-oldgcc.exp         |   2 +-
 gdb/testsuite/gdb.dwarf2/macro-source-path.c  |  20 +
 .../gdb.dwarf2/macro-source-path.exp          | 385 ++++++++++++++++++
 gdb/testsuite/lib/dwarf.exp                   |  92 +++++
 gdb/xcoffread.c                               |   1 +
 25 files changed, 837 insertions(+), 161 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: 414705d1c2d359694459d3991a0975d051ac70b5
-- 
2.35.2


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

end of thread, other threads:[~2022-07-30  0:56 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28  3:35 [PATCH v3 0/7] Fix printing macros Simon Marchi
2022-04-28  3:35 ` [PATCH v3 1/7] gdb: introduce symtab_create_debug_printf Simon Marchi
2022-04-28 15:49   ` Tom Tromey
2022-04-28  3:35 ` [PATCH v3 2/7] gdb: add debug prints in buildsym.c Simon Marchi
2022-04-28 15:50   ` Tom Tromey
2022-04-28  3:35 ` [PATCH v3 3/7] gdb/dwarf: pass compilation directory to line header Simon Marchi
2022-04-28 15:48   ` Tom Tromey
2022-04-28 15:59     ` Simon Marchi
2022-04-28  3:35 ` [PATCH v3 4/7] gdb/dwarf: pass a file_entry to line_header::file_file_name Simon Marchi
2022-05-03 20:12   ` Bruno Larsen
2022-07-28 16:26     ` Simon Marchi
2022-04-28  3:35 ` [PATCH v3 5/7] gdb: add "id" fields to identify symtabs and subfiles Simon Marchi
2022-04-28 23:53   ` Lancelot SIX
2022-07-28 17:46     ` Simon Marchi
2022-04-28  3:35 ` [PATCH v3 6/7] gdb: remove code to prepend comp dir in buildsym_compunit::start_subfile Simon Marchi
2022-05-12 13:07   ` Bruno Larsen
2022-07-28 17:47     ` Simon Marchi
2022-04-28  3:35 ` [PATCH v3 7/7] gdb/testsuite: add macros test for source files compiled in various ways Simon Marchi
2022-05-12 13:17   ` Bruno Larsen
2022-07-28 17:51     ` Simon Marchi
2022-07-30  0:56 ` [PATCH v3 0/7] Fix printing macros Simon Marchi

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