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: [PATCH v2 9/9] enable target-async


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

>> +int mi_last_was_cli;
>> +

Doug> Delete?  It's declared in mi-main.h.

Yeah.  Sorry about this, I forgot to zap some old hacks I had been
trying out.  Hence the commented-out code and other goo.

>> +  if (!target_is_async_p () || !sync_execution)

Doug> Please add a comment explaining the condition here.
Doug> It loosely reads as !async || async.

Ok.

>> struct cleanup *back_to = make_cleanup_restore_integer (&sched_multi);
>> 
>> +      if (!target_async_permitted && target_can_async_p ())
>> +	async_disable_stdin ();
>> +

Doug> A comment explaining why this is here would be helpful.
Doug> I thought target_can_async_p was just a capability flag, not something
Doug> specifying the current state of anything.

This mirrors a condition elsewhere.
I'll add a comment.

Tom


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