From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10931 invoked by alias); 14 Apr 2014 07:35:57 -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 10916 invoked by uid 89); 14 Apr 2014 07:35:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Apr 2014 07:35:55 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3E7ZopL003573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Apr 2014 03:35:51 -0400 Received: from localhost.localdomain (ovpn-112-35.ams2.redhat.com [10.36.112.35]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3E7ZnAw016256; Mon, 14 Apr 2014 03:35:50 -0400 Message-ID: <534B8FD4.6010708@redhat.com> Date: Mon, 14 Apr 2014 10:33:00 -0000 From: Phil Muldoon MIME-Version: 1.0 To: Raphael Zulliger , gdb@sourceware.org Subject: Re: How to implement GDB MI command in Python? References: <534B7F2C.4060506@indel.ch> In-Reply-To: <534B7F2C.4060506@indel.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00044.txt.bz2 On 14/04/14 07:24, Raphael Zulliger wrote: > Hi > > I'm using Python to extend GDB by new commands. This works fine. Now I'd like to call these commands from within Eclipse/CDT. Because GDB supports CLI command in MI-mode, I can call my Python functions by CLI. BUT It would be better, IMHO, to use MI commands, especially for GDB/Python commands that return status information and errors. > > According to my research, it's not possible to create MI commands by Python. My questions: > - Is this correct? Yes. > - If it's correct: Why is that the case? Has it simply not been implemented or are there technical issues/limitations? > Just not done (yet). There have been various discussions on this list about it. There are some technical issues which you need to consider. I won't recap them here, they are pretty well laid out in the archives. So something to think about if you wanted to take a stab at it. Cheers Phil