This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: add to_string argument to gdb.execute


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]