From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89931 invoked by alias); 24 Nov 2016 15:24:44 -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 89894 invoked by uid 89); 24 Nov 2016 15:24:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:sk:cable-1, H*RU:sk:cable-1, H*r:sk:cable-1, sk:darwin X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Nov 2016 15:24:34 +0000 X-ASG-Debug-ID: 1480001071-0c856e65d4b89540001-fS2M51 Received: from smtp.electronicbox.net (smtp.electronicbox.net [96.127.255.82]) by barracuda.ebox.ca with ESMTP id F30cHcv4AofVRCeK (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Nov 2016 10:24:31 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.lan (cable-11.246.173-162.electronicbox.net [173.246.11.162]) by smtp.electronicbox.net (Postfix) with ESMTP id 8E3C3440E7C; Thu, 24 Nov 2016 10:24:31 -0500 (EST) From: Simon Marchi X-Barracuda-Effective-Source-IP: cable-11.246.173-162.electronicbox.net[173.246.11.162] X-Barracuda-Apparent-Source-IP: 173.246.11.162 X-Barracuda-RBL-IP: 173.246.11.162 To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 00/22] Convert ui-out subsystem to C++ Date: Thu, 24 Nov 2016 15:24:00 -0000 X-ASG-Orig-Subj: [PATCH 00/22] Convert ui-out subsystem to C++ Message-Id: <20161124152428.24725-1-simon.marchi@polymtl.ca> X-Barracuda-Connect: smtp.electronicbox.net[96.127.255.82] X-Barracuda-Start-Time: 1480001071 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 4095 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests=BSF_SC0_MISMATCH_TO X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.34709 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00744.txt.bz2 Hi all, This patchset converts the various data structures of the ui-out susbsystem to C++ classes. Except when stated otherwise, the goal is to preserve the same structure, which was already very class-like, and the same behaviour. There are also a few cleanup patches here and there. The patch "Class-ify ui_out" introduces many clang -Wmismatched-tags warnings, which John aimed to fix in another series. I am preparing a patch that fixes them, but since it will only be boring and mechanical changes, I didn't want to delay the submission of this series further. The series is also available here: https://github.com/simark/binutils-gdb/tree/cxx-ui-out-v1 Simon Simon Marchi (22): Remove unused functions and declarations Rename ui_out_data to mi_ui_out_data Remove ui_out_destroy Fix return value of uo_redirect Constify wrap_here/wrap_hint code path Remove verbosity from ui_out_message and friends Remove stale comments Use new/delete instead of malloc/free-based functions Use std::vector for ui_out::levels Use std::vector for mi_ui_out_data::streams Use std::vector for cli_ui_out_data::streams Use std::string in ui_out_table Replace hand-made linked list of ui_out_hdr by vector and iterator Use std::string for ui_out_hdr's text fields Class-ify ui_out_hdr Class-ify ui_out_level Simplify ui-out level code ui_out_table: Replace boolean flag with enum Class-ify ui_out_impl Class-ify ui_out_table Class-ify ui_out Introduce enum_flag type for ui_out flags gdb/ada-lang.c | 47 ++- gdb/ada-tasks.c | 63 ++- gdb/auto-load.c | 29 +- gdb/break-catch-sig.c | 16 +- gdb/break-catch-syscall.c | 40 +- gdb/break-catch-throw.c | 52 ++- gdb/breakpoint.c | 592 +++++++++++++-------------- gdb/cli-out.c | 321 +++++---------- gdb/cli-out.h | 77 ++-- gdb/cli/cli-cmds.c | 2 +- gdb/cli/cli-logging.c | 12 +- gdb/cli/cli-script.c | 84 ++-- gdb/cli/cli-setshow.c | 14 +- gdb/cp-abi.c | 22 +- gdb/darwin-nat-info.c | 48 +-- gdb/disasm.c | 51 ++- gdb/gdb_bfd.c | 16 +- gdb/guile/scm-breakpoint.c | 4 +- gdb/guile/scm-ports.c | 2 +- gdb/i386-linux-tdep.c | 25 +- gdb/i386-tdep.c | 32 +- gdb/infcmd.c | 32 +- gdb/inferior.c | 37 +- gdb/infrun.c | 94 +++-- gdb/interps.c | 4 +- gdb/linespec.c | 2 +- gdb/linux-thread-db.c | 17 +- gdb/mi/mi-cmd-env.c | 9 +- gdb/mi/mi-cmd-file.c | 32 +- gdb/mi/mi-cmd-info.c | 12 +- gdb/mi/mi-cmd-stack.c | 12 +- gdb/mi/mi-cmd-var.c | 77 ++-- gdb/mi/mi-interp.c | 81 ++-- gdb/mi/mi-main.c | 149 ++++--- gdb/mi/mi-out.c | 351 ++++++---------- gdb/mi/mi-out.h | 70 +++- gdb/mi/mi-symbol-cmds.c | 5 +- gdb/osdata.c | 10 +- gdb/probe.c | 67 ++- gdb/progspace.c | 20 +- gdb/python/py-breakpoint.c | 6 +- gdb/python/py-framefilter.c | 88 ++-- gdb/record-btrace.c | 44 +- gdb/remote.c | 4 +- gdb/skip.c | 44 +- gdb/solib.c | 39 +- gdb/source.c | 31 +- gdb/spu-tdep.c | 124 +++--- gdb/stack.c | 84 ++-- gdb/symfile.c | 45 +- gdb/thread.c | 100 ++--- gdb/top.c | 2 +- gdb/tracepoint.c | 146 +++---- gdb/tui/tui-out.c | 156 +++---- gdb/tui/tui.h | 2 +- gdb/ui-out.c | 973 +++++++++++++++----------------------------- gdb/ui-out.h | 320 +++++++-------- gdb/utils.c | 8 +- gdb/utils.h | 2 +- 59 files changed, 2151 insertions(+), 2697 deletions(-) -- 2.10.0