From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71682 invoked by alias); 5 Oct 2015 18:37:29 -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 71670 invoked by uid 89); 5 Oct 2015 18:37:28 -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,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-ig0-f176.google.com Received: from mail-ig0-f176.google.com (HELO mail-ig0-f176.google.com) (209.85.213.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 05 Oct 2015 18:37:27 +0000 Received: by igbkq10 with SMTP id kq10so67445595igb.0 for ; Mon, 05 Oct 2015 11:37:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=9zFT1z6JYOzxM0Wb9mb671IKInDhoFaxv7nC5cfd3cA=; b=lgCCAhoxtLhvQwwgaUpST+Is9fRG9kirGQmew+HIXmwInNPOuhzauoFJf7wvTHCrxI LK+KIdwkhDcKjlbhbxCKbCIFcCe4gEq0mkJmurKYxSFYoohJdQPdkwWmT7IE2GrjOXRu U5Dux0X7NnCnDmYOaRQJ7eXUgrAhC/XTBQBLsx/XgGIZb08OOsI+Xf4uM7ADi1iE1qIS lIrNAhfLVo6MlE6eeBHn8bPh1m5tZiJ7/CfF0+EMM5BFnzX4Vl8Q9rEQKchns9c/6/re Z+UTWLqnqGOQJszwNsMs8TIHSr1V/2VfDWsU4x3bdkeaxvv2izyIMjBJz+5H6KurVHQ6 beVw== X-Gm-Message-State: ALoCoQnYNCN0OjdX4C+c0NZd46+Qlyq943+pV5PNBKWlplkmlF6P3YfxZH911EGx4PhNlBsj25PY X-Received: by 10.50.107.104 with SMTP id hb8mr10768805igb.1.1444070245476; Mon, 05 Oct 2015 11:37:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.134.131 with HTTP; Mon, 5 Oct 2015 11:36:45 -0700 (PDT) In-Reply-To: <20150930080205.GA26183@griffinp-ThinkPad-X1-Carbon-2nd> References: <20150603142858.GA19370@griffinp-ThinkPad-X1-Carbon-2nd> <20150930080205.GA26183@griffinp-ThinkPad-X1-Carbon-2nd> From: Doug Evans Date: Mon, 05 Oct 2015 18:37:00 -0000 Message-ID: Subject: Re: RFC GDB Linux Awareness analysis To: Peter Griffin Cc: gdb-patches , Lee Jones Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00046.txt.bz2 On Wed, Sep 30, 2015 at 1:02 AM, Peter Griffin wrote: > Something which I believe is missing currently is the ability to add a new thread > via the python interface. Is that something you would consider appropriate? I think it's appropriate conceptually. "How" is the tricky part. > By way of example, currently the kernel python scripts add a "lx-ps" which > parses the task_structs, and builds a list of threads. This is the beginning > of task-awareness in python, but currently the list is simply printed > out. > > Being able to either return this thread list to GDB, or actually create thread > objects inside GDB via the python interface would appear to be the next logical > step. > > >> Can we proceed by making "do it in python" the default choice, >> and then address each issue as needed? > > Ok, sounds good to me. This was also my gut feeling when starting this > analysis, but to have it confirmed by you is encouraging :).