From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105644 invoked by alias); 1 Mar 2016 17:27:43 -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 105634 invoked by uid 89); 1 Mar 2016 17:27:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=submission, assigns, logging, Hx-languages-length:1716 X-HELO: mail-pa0-f66.google.com Received: from mail-pa0-f66.google.com (HELO mail-pa0-f66.google.com) (209.85.220.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 01 Mar 2016 17:27:38 +0000 Received: by mail-pa0-f66.google.com with SMTP id fl4so10782088pad.2 for ; Tue, 01 Mar 2016 09:27:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=r9FE0wr0InFSMkSSx4steXqwUuZrLnLKho4qjkGX9J8=; b=FeAPEbArEadLQFIAFIAFdZSGsc+qsKEF+jjdbOCnhbKecAGbN4tY4qshs4nJ94Jh05 xyAP/xgBlzN0hpl1kOOHPw6YCmOBie/tns8/E2eUtYk0KChRBebXQdZMMNA2Ko/XtWbw rE6pTyhJ7oLjk+pZABNeqCaM/tbj+H7MmaqM1pQX4s6tmVTyGnId7N10ApPhrP7Hf3J+ h/H+hGurP4QVmHNSWretkX8+UnM24A3UtzsATF3ZPHU9C76/6q+fPAq1njQb73ZQ5Chc K+i84j7pGkzb+cYfjkvT+MDNqRyiUcSs8HVPVaPc4TJmuXY/mTbmRlAC+1zJH1UlKFg8 FHaA== X-Gm-Message-State: AD7BkJJxyNAq/uZbbxudcMkKmg+7U4Nvj2XkL+STz8JcGH8Gggjvu6vBCQlLcS3Q1JeThA== X-Received: by 10.66.189.165 with SMTP id gj5mr31830743pac.157.1456853257271; Tue, 01 Mar 2016 09:27:37 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id 74sm46936043pfs.33.2016.03.01.09.27.33 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 01 Mar 2016 09:27:36 -0800 (PST) From: Yao Qi To: Kieran Bingham Cc: gdb-patches@sourceware.org, arnez@linux.vnet.ibm.com, jeffm@suse.com, peter.griffin@linaro.org, lee.jones@linaro.org, russell.wayman@linaro.org, kernel@stlinux.com Subject: Re: [PATCH 3/4] gdb/lkd: Add Linux Kernel Awareness target References: <1456427706-30077-1-git-send-email-kieran.bingham@linaro.org> <1456427706-30077-4-git-send-email-kieran.bingham@linaro.org> Date: Tue, 01 Mar 2016 17:27:00 -0000 In-Reply-To: <1456427706-30077-4-git-send-email-kieran.bingham@linaro.org> (Kieran Bingham's message of "Thu, 25 Feb 2016 19:15:05 +0000") Message-ID: <86io169kho.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00019.txt.bz2 Kieran Bingham writes: > Provide infrastructure and thread awareness for the Linux Kernel > This functionality is heavily derived from the functionality created > by ST Microelectronics which provides a greater feature set. In some file headers, there is such claimer Copyright 2011-2013 STMicroelectronics. the copyright should be associated to the FSF. See other GDB source file headers. Looks ST Microelectronics has already had signed copyright paper GDB/INSIGHT STMicroelectronics 2004-12-09 Assigns past and future changes. > > This specific implementation is stripped down to provide thread > awareness only. Other functionality that can already be provided by python > infrastructure such as information gathering tools specific to linux > have been submitted to the linux kernel project separately. This patch includes too many things... could you split it so that the patch only include the very basic and simple kernel awareness feature. It may have bugs or may not handle some cases very well, but GDB can show the kernel threads. The following patches can fix these bugs and do improvements. For example, some commands added by this patch isn't necessary, nor the code for logging levels. They can be split to separated patches. > > Kernel module support is also already working and available through the > python extensions provided by the linux kernel and has been removed from > this submission. I don't know how kernel module support is done through python extensions. I thought linux kernel module can be handled as shared library under the solib infrastructure. See files solib*.c. --=20 Yao (=E9=BD=90=E5=B0=A7)