From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32172 invoked by alias); 22 Jun 2003 18:32:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32115 invoked from network); 22 Jun 2003 18:32:53 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 22 Jun 2003 18:32:53 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D0F152B5F; Sun, 22 Jun 2003 14:32:41 -0400 (EDT) Message-ID: <3EF5F649.6050809@redhat.com> Date: Sun, 22 Jun 2003 18:32:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: RFC: Syntax for logging References: <20030621172358.GA8711@nevyn.them.org> <3EF5EFAD.6010401@redhat.com> <20030622180719.GA7389@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00706.txt.bz2 > > Hmm, two options: > set logging Not this. It should behave like: (gdb) set architecture "set architecture" must be followed by "auto" or an architecture name. > unset logging > > I like "unset logging"; how about you? The only thing we use unset for > at the moment is "unset environment" but I think it extends naturally. so (slightly wierd) yes this. Be sure to mention it in the help message. Perhaphs, also accept ``set logging off'', and ``set logging on'' as those are the first things I'd try :-) Hmm, just noticed, the options are optional, I was thinking that they were required. set logging [redirect|log] [append|overwrite] FILE The syntax will lead to confusion with things like: set logging l or set logging redirect a suggest instead: set logging on [FILE] default gdb.log, log, append? set logging off set logging file FILE set logging append {true,false} set logging redirect {true,false} so that the [FILE] isn't context dependent. Realisticly, I think people will only use: set logging on set logging off Andrew