From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27267 invoked by alias); 3 Sep 2013 01:29:41 -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 27255 invoked by uid 89); 3 Sep 2013 01:29:40 -0000 Received: from mail-pb0-f45.google.com (HELO mail-pb0-f45.google.com) (209.85.160.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 03 Sep 2013 01:29:40 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: mail-pb0-f45.google.com Received: by mail-pb0-f45.google.com with SMTP id mc17so5284105pbc.4 for ; Mon, 02 Sep 2013 18:29:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=1w4xseLR0Mw/NB7UT6/RkwJuVFa/rBBLRKoQeIGgnVM=; b=hPT7Y2/Hum6ewj5ZvMrU/eKk106hrx8g5tthidEoa/EAqjz3YkxPUK3XoyRf2/pJ2C B1LwTup+dJ8LMO3YyFtKe/E0QhE1+/fuxjkwut9Q1gxM9QkYCXw9MEBeLS1i8ai/OwE0 //w0i8rvY+nFQCPJJOc5u+OFrIsndAcptg1ujwM7MrnmA5MEf2z/dKZNl0T9HKRf7KYs iPJ7sviFlPw5zcekBktQAaThp9C7PxFVe4Bx+86vbt49+9U4oj5UHlTd9PlP3asTM2wo ftzSY5whO1Lh7p9NeDeb/UW5E2qtKLu8ydxgthCj/KJRRRYoCO/ej7snQIhCoSgCfpCE eUlg== X-Gm-Message-State: ALoCoQnyNaaePuFmV7B7iZOqw+2wja7+gwNXnEEhLavSfosebVxldW/cx45FBAbKl8z+9/oSMvOF X-Received: by 10.68.252.233 with SMTP id zv9mr28243655pbc.69.1378171777519; Mon, 02 Sep 2013 18:29:37 -0700 (PDT) Received: from bob-VirtualBox (ip70-181-34-249.ri.ri.cox.net. [70.181.34.249]) by mx.google.com with ESMTPSA id kz4sm18750836pbc.39.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 02 Sep 2013 18:29:36 -0700 (PDT) Date: Tue, 03 Sep 2013 01:29:00 -0000 From: Bob Rossi To: Tom Tromey Cc: gdb@sourceware.org Subject: Re: gdb/mi or python interface for front end Message-ID: <20130903012929.GA4379@bob-VirtualBox> References: <20130823005118.GA8847@bob-VirtualBox> <87eh9ka4i8.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eh9ka4i8.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00000.txt.bz2 On Fri, Aug 23, 2013 at 08:03:27AM -0600, Tom Tromey wrote: > 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. In the process. > 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 ;-) OK. I'm curious if anyone knows if the MI protocol supports NUL character bytes in it's output. I'm designing the protocol layer and it would be convient to know if GDB transmits NUL character bytes while sending output. (It's probably possible when printing a string array?) An example would be awesome if so. > 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). Which is why I'm still using annotations. Although that argument is getting older. > 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. I'd like to avoid that. > On the plus side, I think interacting > with Python is generally simpler than interacting with MI. I might end up with a hybrid approach. Bubble up my MI protocol and also support python programming. I'm going to dig deeper at some point in the future on this one. Thanks, Bob Rossi