From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32458 invoked by alias); 22 Mar 2017 17:23:48 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 32436 invoked by uid 89); 22 Mar 2017 17:23:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Pretty, HTo:D*op.pl X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Mar 2017 17:23:45 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 90082813C2; Wed, 22 Mar 2017 18:23:44 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RfxgZ1ACjLn9; Wed, 22 Mar 2017 18:23:44 +0100 (CET) Received: from [IPv6:2a02:2ab8:224:1:f21f:afff:fe4c:b838] (cacatoes.act-europe.fr [IPv6:2a02:2ab8:224:1:f21f:afff:fe4c:b838]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 0BDFA813BE; Wed, 22 Mar 2017 18:23:44 +0100 (CET) Subject: Re: [OpenOCD-devel] Python API for supplying thread information? To: Liviu Ionescu , Freddie Chopin References: <1490175792.1242.7.camel@op.pl> <8FB0BA0B-F013-48A6-965B-AEF4B69610EC@livius.net> Cc: gdb@sourceware.org, openocd-devel From: Pierre-Marie de Rodat Message-ID: <6b759808-b486-64c1-6624-c622cad8a46e@adacore.com> Date: Wed, 22 Mar 2017 17:23:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <8FB0BA0B-F013-48A6-965B-AEF4B69610EC@livius.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00043.txt.bz2 Hello, On 03/22/2017 12:01 PM, Liviu Ionescu wrote: >> The idea I'm asking about is related to the Pretty Printing API in >> Python, ... >> Would that be even possible to implement in GDB? Maybe something like >> that is possible even now, but not documented? > > even if this is possible, it does not cover all debugging tools > (increasing in popularity right now, at least for FreeRTOS) that > might need to introspect the RTOS, for example Eclipse plug-ins to > display the status of semaphores, queues, memory allocators, etc. I remember a talk at the last GNU Cauldron that talked about a project to describe way info and the like in a platfrom-independent way: https://infinitynotes.org/wiki/Infinity It’s not a Python API and it’s still work in progress IIUC, but this would not be something tied to GDB, so ideally other debugging tools could use this info at some point. Would this fit your need? -- Pierre-Marie de Rodat