From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95138 invoked by alias); 1 Feb 2017 00:30:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 94702 invoked by uid 89); 1 Feb 2017 00:30:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=1740, UD:ui-out.h, armtdepc, arm-tdep.c X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Feb 2017 00:30:47 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A8197F749 for ; Wed, 1 Feb 2017 00:30:47 +0000 (UTC) Received: from cascais.lan (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v110UkuX015600 for ; Tue, 31 Jan 2017 19:30:46 -0500 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH v4 0/2] Eliminate cleanups & make ui_file a C++ class hierarchy Date: Wed, 01 Feb 2017 00:30:00 -0000 Message-Id: <1485909045-30285-1-git-send-email-palves@redhat.com> X-SW-Source: 2017-02/txt/msg00002.txt.bz2 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