From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40573 invoked by alias); 27 Nov 2018 20:22:52 -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 40548 invoked by uid 89); 27 Nov 2018 20:22:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1465 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; Tue, 27 Nov 2018 20:22:50 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 745853001BC6 for ; Tue, 27 Nov 2018 20:22:49 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id CAA6F5DF4F for ; Tue, 27 Nov 2018 20:22:48 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Introduce process_stratum_target Date: Tue, 27 Nov 2018 20:22:00 -0000 Message-Id: <20181127202247.7646-1-palves@redhat.com> X-SW-Source: 2018-11/txt/msg00480.txt.bz2 Some more easily-splittable bits from my multi-target branch. In the branch, I did a lot of back and forth around changing the interface of the target_ops::has_foo methods, and it annoyed me that I had to adjust the interface in several places. At some point I came up with these patches to try to centralize things a little more. Pedro Alves (3): Move test_target_ops to a separate file Introduce process_stratum_target Convert default_child_has_foo functions to process_stratum_target methods gdb/Makefile.in | 2 + gdb/bsd-kvm.c | 6 +-- gdb/corelow.c | 8 ++-- gdb/gdbarch-selftests.c | 1 + gdb/inf-child.c | 35 --------------- gdb/inf-child.h | 17 ++----- gdb/process-stratum-target.c | 100 +++++++++++++++++++++++++++++++++++++++++ gdb/process-stratum-target.h | 60 +++++++++++++++++++++++++ gdb/ravenscar-thread.c | 7 --- gdb/regcache.c | 1 + gdb/remote-sim.c | 15 ++----- gdb/remote.c | 14 ++---- gdb/target-delegates.c | 4 +- gdb/target.c | 105 ------------------------------------------- gdb/target.h | 67 ++------------------------- gdb/test-target.c | 39 ++++++++++++++++ gdb/test-target.h | 65 +++++++++++++++++++++++++++ gdb/tracefile.c | 5 --- gdb/tracefile.h | 6 ++- 19 files changed, 295 insertions(+), 262 deletions(-) create mode 100644 gdb/process-stratum-target.c create mode 100644 gdb/process-stratum-target.h create mode 100644 gdb/test-target.c create mode 100644 gdb/test-target.h -- 2.14.4