Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: gdb@sourceware.org
Subject: Re: misc extended scripting bits
Date: Fri, 09 Nov 2007 16:23:00 -0000	[thread overview]
Message-ID: <20071109162340.GA7417@caradoc.them.org> (raw)
In-Reply-To: <200711091114.47565.vapier@gentoo.org>

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


  reply	other threads:[~2007-11-09 16:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09  9:43 Mike Frysinger
2007-11-09 14:07 ` Daniel Jacobowitz
2007-11-09 16:14   ` Mike Frysinger
2007-11-09 16:23     ` Daniel Jacobowitz [this message]
     [not found]       ` <c17be2b30711131035i42572619l277350467df29fc8@mail.gmail.com>
2007-11-13 21:08         ` Daniel Jacobowitz
2007-11-13 22:12           ` Cary Coutant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071109162340.GA7417@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox