Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/9] C++ Support for Compile
Date: Fri, 10 Aug 2018 23:25:00 -0000	[thread overview]
Message-ID: <20180810232534.481-1-keiths@redhat.com> (raw)

This series of patches implements basic C++ compile support.

The series includes a handful of linespec.c cleanups and a small linespec
API change and addition.  I've discussed those changes in the patches.

C++ compile support started largely as a cut-n-paste of the original C
compile work done by Jan Kratochvil, Phil Muldoon, and Tom Tromey, so I'd
like to "send a shout out" to those guys for their pioneering (for GDB)
effort. Thank you, Jan, Phil, and Tom!

I want to stress that this support is quite experimental and likely has some
problems -- maybe even a lot of problems. Nonetheless, the code is usable.
Support is quite incomplete, but I've already made inroads into many missing
features.  These will be submitted in the near future.

Despite the (many) shortcomings, I am submitting this upstream in an attempt
to widen exposure and open further development of this feature to other
interested parties.

Keith Seitz (9):
  Change `file_symtabs' to std::vector
  Change `function_symbols' to std::vector
  Change `label_symbols' to std::vector in linespec.c structures
  Change `minimal_symbols' to std::vector in linespec.c structures
  Change decode_compound_collector to use std::vector
  Remove VEC definitions from linespec.c
  Use block_symbol_d in linespec APIs
  Add new search_symbols_multiple API
  C++ compile support

 gdb/ChangeLog                                      |  115 ++
 gdb/Makefile.in                                    |    5 +
 gdb/NEWS                                           |   14 +
 gdb/ada-lang.c                                     |    2 +-
 gdb/c-lang.c                                       |    4 +-
 gdb/c-lang.h                                       |   19 +
 gdb/compile/compile-c-support.c                    |  205 ++-
 gdb/compile/compile-cplus-support.c                |   30 +
 gdb/compile/compile-cplus-symbols.c                |  511 +++++++
 gdb/compile/compile-cplus-types.c                  | 1430 ++++++++++++++++++++
 gdb/compile/compile-cplus.h                        |  207 +++
 gdb/compile/compile-internal.h                     |    8 +
 gdb/compile/compile-object-load.c                  |    7 +-
 gdb/compile/compile.c                              |    1 -
 gdb/compile/gcc-cp-plugin.h                        |   85 ++
 gdb/doc/ChangeLog                                  |    5 +
 gdb/doc/gdb.texinfo                                |   20 +
 gdb/linespec.c                                     |  553 ++++----
 gdb/symtab.c                                       |    4 +-
 gdb/symtab.h                                       |   45 +-
 gdb/testsuite/ChangeLog                            |   25 +
 .../gdb.compile/compile-cplus-anonymous.cc         |   76 ++
 .../gdb.compile/compile-cplus-anonymous.exp        |   64 +
 .../gdb.compile/compile-cplus-array-decay.cc       |   31 +
 .../gdb.compile/compile-cplus-array-decay.exp      |   50 +
 gdb/testsuite/gdb.compile/compile-cplus-inherit.cc |   58 +
 .../gdb.compile/compile-cplus-inherit.exp          |   53 +
 gdb/testsuite/gdb.compile/compile-cplus-member.cc  |   83 ++
 gdb/testsuite/gdb.compile/compile-cplus-member.exp |   77 ++
 gdb/testsuite/gdb.compile/compile-cplus-method.cc  |   91 ++
 gdb/testsuite/gdb.compile/compile-cplus-method.exp |   67 +
 gdb/testsuite/gdb.compile/compile-cplus-mod.c      |   28 +
 .../gdb.compile/compile-cplus-namespace.cc         |   52 +
 .../gdb.compile/compile-cplus-namespace.exp        |   51 +
 gdb/testsuite/gdb.compile/compile-cplus-nested.cc  |   58 +
 gdb/testsuite/gdb.compile/compile-cplus-nested.exp |   53 +
 gdb/testsuite/gdb.compile/compile-cplus-print.c    |   32 +
 gdb/testsuite/gdb.compile/compile-cplus-print.exp  |   81 ++
 gdb/testsuite/gdb.compile/compile-cplus-virtual.cc |   54 +
 .../gdb.compile/compile-cplus-virtual.exp          |   71 +
 gdb/testsuite/gdb.compile/compile-cplus.c          |  241 ++++
 gdb/testsuite/gdb.compile/compile-cplus.exp        |  341 +++++
 gdb/testsuite/lib/compile-support.exp              |  227 ++++
 43 files changed, 4920 insertions(+), 314 deletions(-)
 create mode 100644 gdb/compile/compile-cplus-support.c
 create mode 100644 gdb/compile/compile-cplus-symbols.c
 create mode 100644 gdb/compile/compile-cplus-types.c
 create mode 100644 gdb/compile/compile-cplus.h
 create mode 100644 gdb/compile/gcc-cp-plugin.h
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-anonymous.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-array-decay.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-inherit.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-inherit.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-member.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-member.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-method.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-method.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-mod.c
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-namespace.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-namespace.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-nested.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-nested.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-print.c
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-print.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-virtual.cc
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus-virtual.exp
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus.c
 create mode 100644 gdb/testsuite/gdb.compile/compile-cplus.exp
 create mode 100644 gdb/testsuite/lib/compile-support.exp

-- 
2.13.6


             reply	other threads:[~2018-08-10 23:25 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-10 23:25 Keith Seitz [this message]
2018-08-10 23:25 ` [PATCH 3/9] Change `label_symbols' to std::vector in linespec.c structures Keith Seitz
2018-08-11 14:50   ` Tom Tromey
2018-08-10 23:25 ` [PATCH 1/9] Change `file_symtabs' to std::vector Keith Seitz
2018-08-11 14:47   ` Tom Tromey
2018-08-17 17:56     ` Keith Seitz
2018-08-28 17:30       ` Tom Tromey
2018-08-10 23:25 ` [PATCH 2/9] Change `function_symbols' " Keith Seitz
2018-08-11 14:49   ` Tom Tromey
2018-08-17 17:59     ` Keith Seitz
2018-08-28 17:43       ` Tom Tromey
2018-08-10 23:31 ` [PATCH 7/9] Use block_symbol_d in linespec APIs Keith Seitz
2018-08-11 15:05   ` Tom Tromey
2018-08-17 18:04     ` Keith Seitz
2018-08-10 23:31 ` [PATCH 6/9] Remove VEC definitions from linespec.c Keith Seitz
2018-08-11 15:03   ` Tom Tromey
2018-08-10 23:32 ` [PATCH 9/9] C++ compile support Keith Seitz
2018-08-11  7:22   ` Eli Zaretskii
2018-08-17 17:51     ` Keith Seitz
2018-08-17 18:57       ` Eli Zaretskii
2018-08-20 17:02         ` Keith Seitz
2018-08-12  0:17   ` Tom Tromey
2018-08-17 18:26     ` Keith Seitz
2018-08-28 17:52       ` Tom Tromey
2018-08-29 22:32         ` Keith Seitz
2021-03-24  1:04   ` Simon Marchi via Gdb-patches
2021-03-24 14:51     ` Keith Seitz via Gdb-patches
2021-03-24 15:06       ` Simon Marchi via Gdb-patches
2021-03-24 20:49         ` Keith Seitz via Gdb-patches
2021-04-01 18:03     ` Tom Tromey
2021-04-01 18:07       ` Luis Machado via Gdb-patches
2021-04-01 19:36       ` Keith Seitz via Gdb-patches
2018-08-10 23:32 ` [PATCH 5/9] Change decode_compound_collector to use std::vector Keith Seitz
2018-08-11 15:02   ` Tom Tromey
2018-08-17 18:04     ` Keith Seitz
2018-08-20  1:20       ` Simon Marchi
2018-08-20 13:28         ` Tom Tromey
2018-08-20 14:03           ` Simon Marchi
2018-08-28 17:46       ` Tom Tromey
2018-08-10 23:32 ` [PATCH 4/9] Change `minimal_symbols' to std::vector in linespec.c structures Keith Seitz
2018-08-11 15:01   ` Tom Tromey
2018-08-17 18:00     ` Keith Seitz
2018-08-28 17:44       ` Tom Tromey
2018-08-10 23:34 ` [PATCH 8/9] Add new search_symbols_multiple API Keith Seitz
2018-08-11 20:49   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180810232534.481-1-keiths@redhat.com \
    --to=keiths@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox