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 4/6] gdbserver: Delimit debugging output for readability


On 12/17/2013 09:47 PM, Doug Evans wrote:
> +   We could also use indentation, but that's adds more complexity.

"but that adds"

Looks good to me, though I think it'd be better to write it as:

linux_wait_1 ()
...
/* Debugging output is delimited to make it easier to read.  */
#define DELIMITER "====\n"
  if (debug_threads)
    fprintf (stderr, DELIMITER "linux_wait_1: [%s]\n", target_pid_to_str (ptid));
  ...
  ...
  if (debug_threads)
    fprintf (stderr, "linux_wait_1 ret = null_ptid\n" DELIMITER);

#undef DELIMITER
}

-- 
Pedro Alves


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