This is the mail archive of the gdb-patches@sources.redhat.com 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: RFC: Syntax for logging


Folks may remember the thread from a year ago:
  RFA: >, >>, and "tee" operators
  http://sources.redhat.com/ml/gdb-patches/2002-07/msg00458.html

I eventually decided that my prefered syntax was:
  redirect [-a] [FILE [COMMAND]]
  log [-a] [FILE [COMMAND]]
But people didn't care for the use of "-a".  I still like this syntax; it's
symmetric, and it allows clearly "transcript [-a]".  But it's pretty clear
to me that we won't reach a consensus on that.  I believe Fernando liked it
and Andrew didn't.

I believe the best alternative at this point is:
 set logging [redirect|log] [append|overwrite] FILE

 show logging
The defaults would be log,overwrite; they could be explicitly specified in
order to overwrite a log file named append, if one wanted to do that.

Comments, anyone?  Shall I repost the patch with that change?  I'd really
like to see this feature added.

Set show are consistent with the command line syntax. How does one turn it off?


Andrew



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