From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123735 invoked by alias); 19 Oct 2016 01:12:33 -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 123581 invoked by uid 89); 19 Oct 2016 01:12:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=1994, Eliminate, 1486, axh 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, 19 Oct 2016 01:12:22 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 A18A6C04B316 for ; Wed, 19 Oct 2016 01:12:20 +0000 (UTC) Received: from cascais.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9J1CJjV019701 for ; Tue, 18 Oct 2016 21:12:20 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH v2 00/31] More cleanup elimination & unlimited args to user-defined funcs Date: Wed, 19 Oct 2016 01:13:00 -0000 Message-Id: <1476839539-8374-1-git-send-email-palves@redhat.com> X-SW-Source: 2016-10/txt/msg00538.txt.bz2 This is v2 of the series first sent here: https://sourceware.org/ml/gdb-patches/2016-10/msg00223.html v1's patch #1 is in master now. v1's patch #2 never made it to the list in v1 for some reason. This time, I've split that patch in many smaller pieces. v1's patch #3 is the struct parse_expression one here. I've added a few new patches as well: E.g., one uses unique_ptr to manage agent_expr owning pointers, similar to the struct expression one. (My goal here to show the direction I think we should head. Help would be much appreciated in applying the pattern to other random cases.) The collection_list patch here is much more complete than what was in v1. And, so you don't all think C++fication is just pointless churn, the last patch in the series is new too, and actually implements something IMO useful. :-) *** BLURB HERE *** Pedro Alves (31): Introduce string_printf cli/cli-script.c: Remove some dead NULL checks breakpoint.c:commands_command_1 constification and cleanup cli-script.c: Simplify using std::string, eliminate cleanups 'struct expression *' -> gdb::unique_xmalloc_ptr Introduce ui_file_as_string Clean up tracepoint.h/c:collection_list Use ui_file_as_string in dwarf2_compute_name Use ui_file_as_string in gdb/xtensa-tdep.c Use ui_file_as_string in gdb/ada-valprint.c Use ui_file_as_string in gdb/ui-out.c Use ui_file_as_string in gdb/utils.c Use ui_file_as_string in gdb/arm-tdep.c Use ui_file_as_string in gdb/guile/ Use ui_file_as_string in execute_command_to_string Use ui_file_as_string in gdb/top.c Use ui_file_as_string in gdb/printcmd.c Use ui_file_as_string in gdb/python/ Use ui_file_as_string in gdb/remote.c Use ui_file_as_string in gdb/cli/cli-setshow.c Use ui_file_as_string in gdb/compile/ Use ui_file_as_string in gdb/c-exp.y Use ui_file_as_string in gdbarch.sh/gdbarch.c Use ui_file_as_string in gdb/ada-lang.c Use ui_file_as_string in gdb/infrun.c Use ui_file_as_string in gdb/rust-lang.c Use ui_file_as_string in gdb/language.c Use ui_file_as_string throughout more 'struct agent_expr *' -> unique_ptr Eliminate agent_expr_p; VEC -> std::vector in struct bp_target_info Support an "unlimited" number of user-defined arguments gdb/doc/gdb.texinfo | 6 +- gdb/NEWS | 3 + gdb/ada-lang.c | 83 ++----- gdb/ada-lang.h | 2 +- gdb/ada-valprint.c | 53 ++-- gdb/ada-varobj.c | 130 ++++------ gdb/arm-tdep.c | 6 +- gdb/ax-gdb.c | 149 ++++-------- gdb/ax-gdb.h | 24 +- gdb/ax-general.c | 48 +--- gdb/ax.h | 19 +- gdb/break-catch-sig.c | 2 +- gdb/break-catch-syscall.c | 2 +- gdb/break-catch-throw.c | 26 +- gdb/breakpoint.c | 226 +++++++---------- gdb/breakpoint.h | 25 +- gdb/c-exp.y | 9 +- gdb/c-lang.c | 9 +- gdb/c-lang.h | 7 +- gdb/c-typeprint.c | 5 +- gdb/c-varobj.c | 142 ++++++----- gdb/cli/cli-script.c | 290 ++++++++++------------ gdb/cli/cli-setshow.c | 7 +- gdb/common/common-utils.c | 30 +++ gdb/common/common-utils.h | 24 ++ gdb/compile/compile-c-support.c | 6 +- gdb/compile/compile.c | 70 +++--- gdb/cp-abi.c | 2 +- gdb/cp-abi.h | 7 +- gdb/cp-support.c | 60 ++--- gdb/cp-support.h | 10 +- gdb/dbxread.c | 22 +- gdb/dtrace-probe.c | 6 +- gdb/dwarf2read.c | 25 +- gdb/eval.c | 43 +--- gdb/expression.h | 12 +- gdb/gdbarch.c | 8 +- gdb/gdbarch.sh | 8 +- gdb/gdbcmd.h | 2 +- gdb/gdbtypes.c | 12 +- gdb/gnu-v3-abi.c | 57 ++--- gdb/guile/guile.c | 18 +- gdb/guile/scm-breakpoint.c | 6 +- gdb/guile/scm-disasm.c | 6 +- gdb/guile/scm-frame.c | 6 +- gdb/guile/scm-type.c | 42 ++-- gdb/guile/scm-value.c | 18 +- gdb/infcmd.c | 9 +- gdb/infrun.c | 6 +- gdb/language.c | 7 +- gdb/language.h | 14 +- gdb/linespec.c | 53 ++-- gdb/mi/mi-cmd-var.c | 70 ++---- gdb/mi/mi-main.c | 43 ++-- gdb/minsyms.c | 17 +- gdb/objc-lang.c | 7 +- gdb/parse.c | 50 ++-- gdb/printcmd.c | 62 ++--- gdb/python/py-arch.c | 10 +- gdb/python/py-breakpoint.c | 8 +- gdb/python/py-frame.c | 8 +- gdb/python/py-type.c | 10 +- gdb/python/py-unwind.c | 7 +- gdb/python/py-value.c | 7 +- gdb/python/py-varobj.c | 4 +- gdb/python/python.c | 19 +- gdb/remote.c | 88 +++---- gdb/rust-exp.y | 11 +- gdb/rust-lang.c | 57 ++--- gdb/stabsread.c | 21 +- gdb/stack.c | 6 +- gdb/symtab.c | 87 +++---- gdb/symtab.h | 39 ++- gdb/top.c | 14 +- gdb/tracepoint.c | 522 ++++++++++++++++------------------------ gdb/tracepoint.h | 74 ++++-- gdb/typeprint.c | 21 +- gdb/ui-file.c | 22 ++ gdb/ui-file.h | 6 + gdb/ui-out.c | 9 +- gdb/utils.c | 5 +- gdb/value.c | 8 +- gdb/value.h | 2 +- gdb/varobj-iter.h | 4 +- gdb/varobj.c | 221 ++++++++--------- gdb/varobj.h | 70 +++--- gdb/xtensa-tdep.c | 9 +- 87 files changed, 1486 insertions(+), 1994 deletions(-) -- 2.5.5