From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2649 invoked by alias); 23 Aug 2013 14:03:33 -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 2633 invoked by uid 89); 23 Aug 2013 14:03:32 -0000 X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 23 Aug 2013 14:03:31 +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 r7NE3T3u024317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 23 Aug 2013 10:03:29 -0400 Received: from barimba (ovpn-113-142.phx2.redhat.com [10.3.113.142]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7NE3R46002669 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 23 Aug 2013 10:03:28 -0400 From: Tom Tromey To: Bob Rossi Cc: gdb@sourceware.org Subject: Re: gdb/mi or python interface for front end References: <20130823005118.GA8847@bob-VirtualBox> Date: Fri, 23 Aug 2013 14:03:00 -0000 In-Reply-To: <20130823005118.GA8847@bob-VirtualBox> (Bob Rossi's message of "Thu, 22 Aug 2013 20:51:19 -0400") Message-ID: <87eh9ka4i8.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-08/txt/msg00110.txt.bz2 Bob> I would like some advice. It currently uses annotate level 2 Bob> for communication. Should I look into gdb/mi or should i look Bob> into scripting gdb with the python interface? Definitely stop using annotations. MI is what all the other UIs for gdb use. It is reasonably complete and, while odd and/or buggy in some places, it is at least well known, so you'll have plenty of company for either discussing bugs or commiseration ;-) I think using Python is cool, but I must admit it has a couple of potential drawbacks. First, it limits the versions of gdb your tool can use -- older gdbs do not have Python, and it is an optional feature (though most distros build it in). Also, it is not as complete as MI in some ways, so you may encounter holes that you need to be filled before you can implement some feature. On the plus side, I think interacting with Python is generally simpler than interacting with MI. Tom