From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10664 invoked by alias); 9 Nov 2007 16:23:48 -0000 Received: (qmail 10654 invoked by uid 22791); 9 Nov 2007 16:23:47 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Nov 2007 16:23:44 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id AA29898353; Fri, 9 Nov 2007 16:23:41 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 91D8398100; Fri, 9 Nov 2007 16:23:41 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IqWdw-0001vz-S0; Fri, 09 Nov 2007 11:23:40 -0500 Date: Fri, 09 Nov 2007 16:23:00 -0000 From: Daniel Jacobowitz To: Mike Frysinger Cc: gdb@sourceware.org Subject: Re: misc extended scripting bits Message-ID: <20071109162340.GA7417@caradoc.them.org> Mail-Followup-To: Mike Frysinger , gdb@sourceware.org References: <200711090443.30594.vapier@gentoo.org> <20071109140656.GC32113@caradoc.them.org> <200711091114.47565.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200711091114.47565.vapier@gentoo.org> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes 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 X-SW-Source: 2007-11/txt/msg00071.txt.bz2 On Fri, Nov 09, 2007 at 12:14:47PM -0400, Mike Frysinger wrote: > On Friday 09 November 2007, Daniel Jacobowitz wrote: > > On Fri, Nov 09, 2007 at 05:43:29AM -0400, Mike Frysinger wrote: > > > is there a way to do indirection of evaluating statements ? in other > > > words, is there an equivalent of the shell "eval" command ? so something > > > like: > > > > Nope. Nor any of your other ideas, sorry. > > > > I remain more interested in scripting language integration than > > extending the current CLI. > > does that mean lang hooks exist or that it is the planned route for future > work ? I keep talking about it but not having time to work on it :-( The wiki link points over here: http://sourceware.org/gdb/wiki/ProjectIdeas http://sourceware.org/ml/gdb/2007-01/msg00126.html I believe we reached a more-or-less agreement on Python. I hope that either someone else will find time to work on and contribute this, or else that I will. I was hoping it would get done in 2007 but unless my December is a lot more boring than my November is going to be, I won't have time. > > For instance, one big hangup with eval is > > that we have no real concept of strings. > > i did notice that anytime i tried to use a string, gdb complained about lack > of target defining a malloc symbol ... Yep. Each string is malloc'd, placed in target memory, and treated as a char *. I've done some work on this, but nothing mature. -- Daniel Jacobowitz CodeSourcery