From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49086 invoked by alias); 16 Mar 2017 16:57:49 -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 49062 invoked by uid 89); 16 Mar 2017 16:57:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Sourceware 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; Thu, 16 Mar 2017 16:57:47 +0000 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2GGrauG037600 for ; Thu, 16 Mar 2017 12:57:46 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 297nd0w7pf-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 16 Mar 2017 12:57:46 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 16 Mar 2017 16:57:44 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 16 Mar 2017 16:57:40 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2GGvehV20840716; Thu, 16 Mar 2017 16:57:40 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE418AE045; Thu, 16 Mar 2017 16:57:20 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BAC7EAE057; Thu, 16 Mar 2017 16:57:20 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 16 Mar 2017 16:57:20 +0000 (GMT) From: Philipp Rudo To: gdb-patches@sourceware.org Cc: Yao Qi , Peter Griffin , Omair Javaid , Andreas Arnez Subject: [RFC v3 0/8] Support for Linux kernel debugging Date: Thu, 16 Mar 2017 16:57:00 -0000 X-TM-AS-GCONF: 00 x-cbid: 17031616-0040-0000-0000-000003657348 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17031616-0041-0000-0000-00001F4D13A8 Message-Id: <20170316165739.88524-1-prudo@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-16_12:,, 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-1702020001 definitions=main-1703160132 X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00268.txt.bz2 Hi everybody here is v3 of the patch series. Andreas also pushed it to a new branch (users/arnez/lk3) on Sourceware. To make colaboration easier and prevent merge conflicts we (Peter, Yao, Andreas and I) decided to take v3 as the basis for further development. That means future patches will be added on top of the branch and finally merged to reasonable patches once the feature is ready to go upstream. I hope there are no objections against this procedure. New in v3: * Rebase to current master. * configure.tgt: Fix build bug when not compiled with --enable-targets=all. * Makefile.in: Move all lk-*.o files to ALL_TARGET_OBS. * lk-low.c (lk_init_addr): Use lookup_minimal_symbol instead of parser. (lk_init_struct): Use lookup_symbol instead of parser. (lk_init_field): Adjust calling signature. (lk_fetch_registers): Use ptid from regcache instead of inferior_ptid. * lk-low.h: Adjust LK_*_FIELD macros. Philipp Rudo (8): 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 Seperate common s390-tdep.* from s390-linux-tdep.* Add privileged registers for s390x 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/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 | 937 +++++++++ gdb/lk-low.h | 334 ++++ gdb/lk-modules.c | 412 ++++ gdb/lk-modules.h | 29 + 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 | 3427 +-------------------------------- gdb/s390-linux-tdep.h | 178 +- gdb/s390-lk-tdep.c | 390 ++++ gdb/s390-lk-tdep.h | 36 + gdb/s390-tdep.c | 3408 ++++++++++++++++++++++++++++++++ gdb/s390-tdep.h | 384 ++++ gdb/solib.c | 8 + gdb/solib.h | 5 + gdb/typeprint.c | 8 +- gdb/typeprint.h | 2 + gdb/utils.c | 88 +- gdb/utils.h | 26 +- 36 files changed, 7061 insertions(+), 3633 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.8.4