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: [MI] Prevent program output from mixing with "^running".


> +      fprintf_unfiltered (raw_stdout, "%s^running\n",
> +			  current_token ? current_token : "");

If I were you, I'd add a comment explaining that both elements are
printed at the same time on purpose.  I occasionally "improve" code
clarity by getting rid of ill-used ?: sequences...

-- 
Joel


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