Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFC: Syntax for logging
@ 2003-06-21 17:24 Daniel Jacobowitz
  2003-06-21 18:01 ` Doug Evans
  2003-06-22 18:04 ` Andrew Cagney
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2003-06-21 17:24 UTC (permalink / raw)
  To: gdb-patches

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.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-06-22 19:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-21 17:24 RFC: Syntax for logging Daniel Jacobowitz
2003-06-21 18:01 ` Doug Evans
2003-06-22 18:04 ` Andrew Cagney
2003-06-22 18:07   ` Daniel Jacobowitz
2003-06-22 18:32     ` Andrew Cagney
2003-06-22 18:41       ` Daniel Jacobowitz
2003-06-22 19:19         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox