public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: add to_string argument to gdb.execute
Date: Thu, 10 Jun 2010 21:06:00 -0000	[thread overview]
Message-ID: <m38w6m8unq.fsf@fleche.redhat.com> (raw)
In-Reply-To: <AANLkTikloPg4mFEk5fsA3sL6v13bEjid55seSprXyLmf@mail.gmail.com>	(Doug Evans's message of "Thu, 10 Jun 2010 13:54:49 -0700")

>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Doug> This feels like a with-output-to-string kind-of-problem.
Doug> i.e. the wrapping of collecting the output to a string belongs at a
Doug> higher level.

It seems reasonable to me to have both.
I've never wanted more than a single command's worth of output fwiw.

Doug> That way one can wrap anything and have all the gdb output collected
Doug> without having to modify all the individual gdb.execute calls inside.
Doug> Dunno if it's as easy to implement though.

It is not extremely hard with the Python 'with' statement.
I think it will be a lot more code though, on the order of a new
class.

I don't plan to work on that.  If you are against this patch, please say
so, and I will drop it.

Tom

  reply	other threads:[~2010-06-10 21:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10 20:27 Tom Tromey
2010-06-10 20:55 ` Doug Evans
2010-06-10 21:06   ` Tom Tromey [this message]
2010-06-10 21:19     ` Doug Evans
2010-06-11 15:29 ` Daniel Jacobowitz
2010-06-17 20:25 ` Tom Tromey
2010-06-25 16:55   ` Tom Tromey
2010-06-25 17:04     ` Eli Zaretskii

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=m38w6m8unq.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).