From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31418 invoked by alias); 14 Apr 2014 06:25:00 -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 31406 invoked by uid 89); 14 Apr 2014 06:24:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: ms9smtp.webland.ch Received: from ms9.webland.ch (HELO ms9smtp.webland.ch) (92.43.217.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 14 Apr 2014 06:24:57 +0000 Received: from ([77.57.22.1]) by ms9smtp.webland.ch (Webland Mail Server v. 10.4.1) with ASMTP id 201404140824532228 for ; Mon, 14 Apr 2014 08:24:53 +0200 Received: from localhost (localhost [127.0.0.1]) by macserver.private (Postfix) with ESMTP id 8E29E1D0DDA2; Mon, 14 Apr 2014 08:24:52 +0200 (CEST) Received: from macserver.private ([127.0.0.1]) by localhost (macserver.private [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KXGPfLPRPt2f; Mon, 14 Apr 2014 08:24:45 +0200 (CEST) Received: from [192.168.1.26] (unknown [192.168.1.26]) by macserver.private (Postfix) with ESMTP id 3A0F51D0DD96 for ; Mon, 14 Apr 2014 08:24:45 +0200 (CEST) Message-ID: <534B7F2C.4060506@indel.ch> Date: Mon, 14 Apr 2014 07:35:00 -0000 From: Raphael Zulliger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: gdb@sourceware.org Subject: How to implement GDB MI command in Python? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00043.txt.bz2 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? - If it's correct: Why is that the case? Has it simply not been implemented or are there technical issues/limitations? Thanks Raphael