This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v4 0/2] Eliminate cleanups & make ui_file a C++ class hierarchy
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 1 Feb 2017 00:30:43 +0000
- Subject: [PATCH v4 0/2] Eliminate cleanups & make ui_file a C++ class hierarchy
- Authentication-results: sourceware.org; auth=none
New in v4:
- Rebased on top of master. That brought in the gdb_disassembler
changes, which required writing a new patch (patch #1 in v4).
- Patches 1-4 of v3 are already pushed to master.
This series started from the desire to eliminate
make_cleanup_ui_file_delete, but goes beyond that, cleaning up and
simplifying up ui_file implementations and their client-side handling
substantially, IMO.
Mainly, it makes ui_file & friends a real C++ class hierarchy, and
switches temporary ui_file-like objects to stack-based allocation.
As for cleanups count, 'git grep make_cleanup | wc -l' before / after
shows:
before: 1803
after: 1740
------------
delta: -63
Also pushed to the users/palves/ui_file_v4 branch.
Pedro Alves (2):
Add back gdb_pretty_print_insn
Eliminate make_cleanup_ui_file_delete / make ui_file a class hierarchy
gdb/ada-lang.c | 12 +-
gdb/ada-valprint.c | 9 +-
gdb/ada-varobj.c | 23 +-
gdb/aix-thread.c | 18 +-
gdb/arm-tdep.c | 13 +-
gdb/breakpoint.c | 97 +++--
gdb/c-exp.y | 8 +-
gdb/cli/cli-logging.c | 55 ++-
gdb/cli/cli-setshow.c | 36 +-
gdb/compile/compile-c-support.c | 62 ++--
gdb/compile/compile-c-symbols.c | 21 +-
gdb/compile/compile-internal.h | 2 +-
gdb/compile/compile-loc2c.c | 107 +++---
gdb/compile/compile.c | 9 +-
gdb/compile/compile.h | 4 +-
gdb/cp-support.c | 38 +-
gdb/disasm-selftests.c | 4 +-
gdb/disasm.c | 64 ++--
gdb/disasm.h | 11 +-
gdb/dummy-frame.c | 9 +-
gdb/dwarf2loc.c | 6 +-
gdb/dwarf2loc.h | 2 +-
gdb/dwarf2read.c | 48 +--
gdb/event-top.c | 4 +-
gdb/gdbarch.c | 32 +-
gdb/gdbarch.sh | 20 +-
gdb/gdbtypes.c | 3 +-
gdb/guile/scm-breakpoint.c | 12 +-
gdb/guile/scm-disasm.c | 16 +-
gdb/guile/scm-frame.c | 9 +-
gdb/guile/scm-ports.c | 95 ++---
gdb/guile/scm-type.c | 14 +-
gdb/guile/scm-value.c | 29 +-
gdb/infcmd.c | 12 +-
gdb/infrun.c | 36 +-
gdb/language.c | 38 +-
gdb/location.c | 43 +--
gdb/main.c | 2 +-
gdb/maint.c | 9 +-
gdb/mi/mi-cmd-stack.c | 17 +-
gdb/mi/mi-common.h | 12 +-
gdb/mi/mi-console.c | 135 ++-----
gdb/mi/mi-console.h | 36 +-
gdb/mi/mi-interp.c | 22 +-
gdb/mi/mi-main.c | 61 ++-
gdb/mi/mi-out.c | 27 +-
gdb/mi/mi-out.h | 7 +-
gdb/printcmd.c | 11 +-
gdb/psymtab.c | 19 +-
gdb/python/py-arch.c | 30 +-
gdb/python/py-breakpoint.c | 13 +-
gdb/python/py-frame.c | 9 +-
gdb/python/py-framefilter.c | 32 +-
gdb/python/py-type.c | 19 +-
gdb/python/py-unwind.c | 24 +-
gdb/python/py-value.c | 16 +-
gdb/record-btrace.c | 8 +-
gdb/regcache.c | 9 +-
gdb/reggroups.c | 9 +-
gdb/remote.c | 12 +-
gdb/rust-lang.c | 9 +-
gdb/serial.c | 9 +-
gdb/stack.c | 28 +-
gdb/symmisc.c | 14 +-
gdb/symtab.h | 2 +-
gdb/top.c | 51 +--
gdb/tracepoint.c | 7 +-
gdb/tui/tui-disasm.c | 18 +-
gdb/tui/tui-file.c | 230 +-----------
gdb/tui/tui-file.h | 18 +-
gdb/tui/tui-io.c | 4 +-
gdb/tui/tui-regs.c | 21 +-
gdb/tui/tui-stack.c | 33 +-
gdb/typeprint.c | 17 +-
gdb/ui-file.c | 802 +++++++---------------------------------
gdb/ui-file.h | 295 ++++++++++-----
gdb/ui-out.c | 10 +-
gdb/ui-out.h | 2 +-
gdb/utils.c | 33 +-
gdb/utils.h | 8 +-
gdb/varobj.c | 29 +-
gdb/xtensa-tdep.c | 31 +-
82 files changed, 1084 insertions(+), 2147 deletions(-)
--
2.5.5