From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15026 invoked by alias); 23 Aug 2013 14:07:54 -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 15011 invoked by uid 89); 23 Aug 2013 14:07:53 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO autolearn=ham version=3.3.2 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 23 Aug 2013 14:07:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 60675116629; Fri, 23 Aug 2013 10:07:57 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DM+eY1jSnB0F; Fri, 23 Aug 2013 10:07:57 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 53369116625; Fri, 23 Aug 2013 10:07:55 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id C4A00C3DA9; Fri, 23 Aug 2013 07:07:47 -0700 (PDT) Date: Fri, 23 Aug 2013 14:07:00 -0000 From: Joel Brobecker To: Bob Rossi Cc: gdb@sourceware.org Subject: Re: gdb/mi or python interface for front end Message-ID: <20130823140747.GN5147@adacore.com> References: <20130823005118.GA8847@bob-VirtualBox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130823005118.GA8847@bob-VirtualBox> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-08/txt/msg00112.txt.bz2 > I'm interested in improving the CGDB front end to GDB. > > I would like some advice. It currently uses annotate level 2 > for communication. Should I look into gdb/mi or should i look > into scripting gdb with the python interface? > > Any pointers would be helpful. I hope others who have more actual knowledge will answer, but in case no one else does, my first reaction would be to look into GDB/MI, because that's the interface that was designed to be used by front ends. The Python API is getting very versatile, but I don't know if it is going to provide everything you need nor whether it'll be convenient to use. In particular, sending commands, getting the output (with stdout and stderr separated), etc. -- Joel