This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/8] Convert C compile to C++
- From: Keith Seitz <keiths at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 3 May 2018 11:41:45 -0700
- Subject: [PATCH 0/8] Convert C compile to C++
This patch series begins the move to C++ for the compile feature,
specifically targeting C type conversion. This work is the basis for ongoing
C++ compile work, which I hope to submit in the not-too-distant future.
The main drive of the patches is to convert compile_instance and
compile_c_instance into classes, but there are several pre-cursor patches
which attempt to reorganize the code a little bit. Generic compile
functionality is put into compile-internal.h/compile.c, and all other
C-specific code is moved into compile-c-*.c/h files.
Keith Seitz (8):
Return unique_xmalloc_ptr for generate_c_for_variable_locations
Rename symbol_substitution_name
Move C-related declarations to compile-c.h
Add a C++ wrapper for GCC C plug-in
Change compile_instance/compile_c_instance into classes
Use std::unordered_map instead of htab_t.
Move compile_instance to compile.c
Use policies for code generation
gdb/Makefile.in | 9 +-
gdb/c-lang.h | 4 +-
gdb/compile/compile-c-support.c | 419 +++++++++++++++++++++++++---------------
gdb/compile/compile-c-symbols.c | 180 ++++-------------
gdb/compile/compile-c-types.c | 317 +++++++++++-------------------
gdb/compile/compile-c.h | 95 +++++++++
gdb/compile/compile-internal.h | 177 +++++++++--------
gdb/compile/compile-loc2c.c | 1 +
gdb/compile/compile.c | 198 ++++++++++++++-----
gdb/compile/gcc-c-plugin.h | 64 ++++++
gdb/language.h | 6 +-
11 files changed, 828 insertions(+), 642 deletions(-)
create mode 100644 gdb/compile/compile-c.h
create mode 100644 gdb/compile/gcc-c-plugin.h
--
2.13.6