Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@transmeta.com>
To: Richard Sharpe <rsharpe@richardsharpe.com>
Cc: <ac131313@redhat.com>, fnasser@redhat.com, <gdb@sources.redhat.com>
Subject: eval [was Re: Processing of convenience variables for scripts ...]
Date: Sun, 08 Dec 2002 12:08:00 -0000	[thread overview]
Message-ID: <15859.42657.660983.814181@casey.transmeta.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0212081157240.2098-100000@ns.aus.com>

Richard Sharpe writes:
 > On Sun, 8 Dec 2002, Doug Evans wrote:
 > 
 > > Andrew writes:
 > >  >> The loop works, but add-symbol-file seems to be called without the
 > >  >>>
 > >  >>> convenience variables being expanded.
 > >  >>>
 > >  >>> Have it got that right?
 > >  >>>
 > >  >>> If so, what would be the first step to get them expanded?
 > >  >>
 > >  >> add-symbol-file takes constants, not expressions - so variables are not
 > >  >> expanded.  This should probably change but it's not clear how, given
 > >  >> the parser...
 > >  >
 > >  > A quick/dirty hack would be:
 > >  >
 > >  > eval .....
 > > 
 > > Can someone point me to threads on `eval'?
 > > My poor eyes can't find one.
 > 
 > I think that the intent was that someone implement eval. I can't find an 
 > existing one. Maybe my eyes are bad as well.

I recall a message from Fernando (I think) refering to the existing
threads on eval, so I was wondering where they were.

What about a $()-like command akin to bash?
Maybe spelled $`` (backquote also from bash and because $` is
a syntax that doesn't collide with anything).
It's very useful to be able to run a command and have the result be used
in another command.

For add-symbol-file, one might do

add-symbol-file $`printf %s, $name` blah...

$`` is useful regardless of how the cli is rewritten,
though perhaps in this example it's more clumsy than just $name.
OTOH, there's enormous flexibility.
It does require commands that are used with it to properly
send their output through something that can be captured in a string,
but that's a good thing for them to do anyway.


      reply	other threads:[~2002-12-08 20:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-20  0:48 Processing of convenience variables for scripts Richard Sharpe
2002-11-20  6:13 ` Daniel Jacobowitz
2002-11-20  8:32   ` Andrew Cagney
2002-11-20  8:36     ` Daniel Jacobowitz
2002-11-20  9:28       ` Richard Sharpe
2002-11-20 10:36         ` Daniel Jacobowitz
2002-11-20 21:40           ` Eli Zaretskii
2002-12-05 16:52           ` Fernando Nasser
2002-12-08 11:36           ` Doug Evans
2002-12-08 12:30             ` Daniel Jacobowitz
2002-12-08 12:52               ` Doug Evans
2002-12-08 11:16   ` Doug Evans
2002-12-08 11:31     ` Richard Sharpe
2002-12-08 12:08       ` Doug Evans [this message]

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=15859.42657.660983.814181@casey.transmeta.com \
    --to=dje@transmeta.com \
    --cc=ac131313@redhat.com \
    --cc=fnasser@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=rsharpe@richardsharpe.com \
    /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