From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7080 invoked by alias); 26 May 2014 16:37:01 -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 6963 invoked by uid 89); 26 May 2014 16:36:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp10.uk.ibm.com Received: from e06smtp10.uk.ibm.com (HELO e06smtp10.uk.ibm.com) (195.75.94.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 26 May 2014 16:36:55 +0000 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 26 May 2014 17:36:52 +0100 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 26 May 2014 17:36:50 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 708941B08051 for ; Mon, 26 May 2014 17:37:09 +0100 (BST) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4QGanJp5374338 for ; Mon, 26 May 2014 16:36:49 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4QGanXU021352 for ; Mon, 26 May 2014 10:36:49 -0600 Received: from br87z6lw.ibm.com (sig-9-78-93-212.uk.ibm.com [9.78.93.212]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s4QGanip021342; Mon, 26 May 2014 10:36:49 -0600 From: Andreas Arnez To: gdb-patches@sourceware.org Cc: Mark Kettenis Subject: [PATCH 00/12] Regset rework preparations part 2 Date: Mon, 26 May 2014 16:37:00 -0000 Message-Id: <1401122208-2481-1-git-send-email-arnez@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14052616-4966-0000-0000-000000289783 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00631.txt.bz2 Now that part 1 of the regset rework preparations has been integrated (https://sourceware.org/ml/gdb-patches/2014-05/msg00239.html), I'd like to continue with part 2. This part adds a collect_regset method to all Linux regsets where it had been missing. This is necessary, but not sufficient, to make the "gcore" command multi-arch capable for the affected targets. When this part is approved, I can provide a follow-on patch set that fills the remaining gaps to multi-arch capable core file handling for all Linux targets. Another goal is to make regset handling more similar across architectures. Therefore the first patch in this series introduces generic regset_supply/collect functions, and several of the following patches exploit them. Last time I posted this, Mark Kettenis indicated a need for discussing these functions' interfaces, and I tried to explain my reasons for the suggested choice: https://sourceware.org/ml/gdb-patches/2014-05/msg00043.html. Andreas Arnez (12): regcache: Add functions suitable for regset_supply/collect. S390: Migrate to regcache_supply/collect_regset. AARCH64 Linux: Fill 'collect_regset' in regset structures. ALPHA Linux: Fill 'collect_regset' in regset structures. FRV Linux: Fill 'collect_regset' in regset structures. HPPA Linux: Fill 'collect_regset' in regset structures. M32R Linux: Fill 'collect_regset' in regset structure. NIOS2 Linux: Fill 'collect_regset' in regset structure. SCORE: Fill 'collect_regset' in regset structure. TILEGX Linux: Fill 'collect_regset' in regset structure. M68K Linux: Define regset structures. IA64 Linux: Define regset structures. gdb/aarch64-linux-nat.c | 38 ++----- gdb/aarch64-linux-tdep.c | 90 ++++----------- gdb/aarch64-linux-tdep.h | 18 ++- gdb/alpha-linux-tdep.c | 56 ++++++---- gdb/frv-linux-tdep.c | 141 +++++++++--------------- gdb/hppa-linux-tdep.c | 101 ++++++----------- gdb/ia64-linux-tdep.c | 87 +++++++++++++++ gdb/m32r-linux-tdep.c | 81 +++++++++++--- gdb/m68klinux-tdep.c | 65 +++++++++++ gdb/nios2-linux-tdep.c | 23 +++- gdb/regcache.c | 66 +++++++++++ gdb/regcache.h | 38 +++++++ gdb/s390-linux-nat.c | 177 +++++++++++++----------------- gdb/s390-linux-tdep.c | 278 ++++++++++------------------------------------- gdb/s390-linux-tdep.h | 13 +-- gdb/score-tdep.c | 72 ++++-------- gdb/score-tdep.h | 34 +----- gdb/tilegx-linux-tdep.c | 37 +++---- 18 files changed, 690 insertions(+), 725 deletions(-) -- 1.8.4.2