From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64160 invoked by alias); 12 Jun 2017 17:08: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 64111 invoked by uid 89); 12 Jun 2017 17:08:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=adapt X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Jun 2017 17:08:41 +0000 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v5CH8hwV003032 for ; Mon, 12 Jun 2017 13:08:45 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0a-001b2d01.pphosted.com with ESMTP id 2b1wb0w9wg-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Jun 2017 13:08:44 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Jun 2017 18:08:40 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Jun 2017 18:08:37 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v5CH8bq038273160; Mon, 12 Jun 2017 17:08:37 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 54B6A4C04A; Mon, 12 Jun 2017 18:06:52 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 26A344C044; Mon, 12 Jun 2017 18:06:52 +0100 (BST) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 12 Jun 2017 18:06:52 +0100 (BST) From: Philipp Rudo To: gdb-patches@sourceware.org Cc: omair.javaid@linaro.org, yao.qi@linaro.org, peter.griffin@linaro.org, arnez@linux.vnet.ibm.com Subject: [RFC v4 0/9] Support for Linux kernel debugging Date: Mon, 12 Jun 2017 17:08:00 -0000 X-TM-AS-GCONF: 00 x-cbid: 17061217-0012-0000-0000-0000054AFCF6 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17061217-0013-0000-0000-000018BAD1CA Message-Id: <20170612170836.25174-1-prudo@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-12_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=15 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706120298 X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00347.txt.bz2 Hi everybody, here is finally v4 of my patch set. Despite the announcement made with v3, I turned away from the idea to only add patches on top. While the idea sounds good reality showed that resolving all merge conflicts and splitting them up so they can easily be squashed into the original commits is not that nice. New in v4: * Rebase to current master (fd0219988d). * Add S390 kernel stack unwinder (requires new patch #8). * C++-ify module support. * Rewrite module relocation to mimic kernel better. * Adapt to new ptid_t API. * Update commit messages. * Fix some typos and coding style violations. Philipp Philipp Rudo (9): Convert substitute_path_component to C++ Add libiberty/concat styled concat_path function Add basic Linux kernel support Add kernel module support for linux-kernel target Add commands for linux-kernel target Separate common s390-tdep.* from s390-linux-tdep.* Add privileged registers for s390x Link frame_info to thread_info Add S390 support for linux-kernel target gdb/Makefile.in | 22 + gdb/auto-load.c | 18 +- gdb/common/common-utils.h | 11 + gdb/configure.tgt | 9 +- gdb/features/Makefile | 11 +- gdb/features/s390-cr.xml | 26 + gdb/features/s390x-cr-linux64.c | 99 + gdb/features/s390x-cr-linux64.xml | 24 + gdb/features/s390x-vxcr-linux64.c | 169 ++ gdb/features/s390x-vxcr-linux64.xml | 25 + gdb/frame.c | 12 + gdb/frame.h | 2 + gdb/gdbarch.c | 31 + gdb/gdbarch.h | 7 + gdb/gdbarch.sh | 4 + gdb/lk-cmds.c | 253 +++ gdb/lk-cmds.h | 25 + gdb/lk-lists.c | 47 + gdb/lk-lists.h | 56 + gdb/lk-low.c | 944 ++++++++ gdb/lk-low.h | 338 +++ gdb/lk-modules.c | 498 +++++ gdb/lk-modules.h | 149 ++ gdb/regformats/s390x-cr-linux64.dat | 76 + gdb/regformats/s390x-vxcr-linux64.dat | 108 + gdb/s390-linux-nat.c | 1 + gdb/s390-linux-tdep.c | 3934 +++++---------------------------- gdb/s390-linux-tdep.h | 178 +- gdb/s390-lk-tdep.c | 887 ++++++++ gdb/s390-lk-tdep.h | 54 + gdb/s390-tdep.c | 2716 +++++++++++++++++++++++ gdb/s390-tdep.h | 437 ++++ gdb/solib.c | 8 + gdb/solib.h | 5 + gdb/typeprint.c | 8 +- gdb/typeprint.h | 2 + gdb/utils.c | 87 +- gdb/utils.h | 26 +- 38 files changed, 7759 insertions(+), 3548 deletions(-) create mode 100644 gdb/features/s390-cr.xml create mode 100644 gdb/features/s390x-cr-linux64.c create mode 100644 gdb/features/s390x-cr-linux64.xml create mode 100644 gdb/features/s390x-vxcr-linux64.c create mode 100644 gdb/features/s390x-vxcr-linux64.xml create mode 100644 gdb/lk-cmds.c create mode 100644 gdb/lk-cmds.h create mode 100644 gdb/lk-lists.c create mode 100644 gdb/lk-lists.h create mode 100644 gdb/lk-low.c create mode 100644 gdb/lk-low.h create mode 100644 gdb/lk-modules.c create mode 100644 gdb/lk-modules.h create mode 100644 gdb/regformats/s390x-cr-linux64.dat create mode 100644 gdb/regformats/s390x-vxcr-linux64.dat create mode 100644 gdb/s390-lk-tdep.c create mode 100644 gdb/s390-lk-tdep.h create mode 100644 gdb/s390-tdep.c create mode 100644 gdb/s390-tdep.h -- 2.11.2