Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@specifix.com>
To: Yakov Lerner <iler.ml@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: implementing eval command
Date: Fri, 15 Feb 2008 17:59:00 -0000	[thread overview]
Message-ID: <1203098329.19253.133.camel@localhost.localdomain> (raw)
In-Reply-To: <f36b08ee0802140818j2c5d26d5yb09c3662b81f8444@mail.gmail.com>

Moving this to "gdb" list, since it is not a patch.

On Thu, 2008-02-14 at 18:18 +0200, Yakov Lerner wrote:
> I'd like to make a patch that implements eval command, as follows.
> I have following idea to implement eval simply:
> Syntax of eval will be similar to the syntax of 'printf' command:
>          eval "string with %..." comma-separated-expressions
> Implementation relies on existing printf_command() function,
> by rewriting printf_command into pair of functions, one that computes
> result of printf as allocated string; both printf_command and eval_command
> will use compute_printf() function.
> What do you think ?

Hmmm, that would be one way of getting around the 
limitations of some commands that can't accept expressions
as arguments (mentioned in another thread).

What do you see as the context for this eval command?
How do you imagine it will be used?




       reply	other threads:[~2008-02-15 17:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f36b08ee0802140818j2c5d26d5yb09c3662b81f8444@mail.gmail.com>
2008-02-15 17:59 ` Michael Snyder [this message]
2008-02-16  7:37   ` Yakov Lerner
2008-02-19 19:12     ` Michael Snyder

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=1203098329.19253.133.camel@localhost.localdomain \
    --to=msnyder@specifix.com \
    --cc=gdb@sourceware.org \
    --cc=iler.ml@gmail.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