From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17714 invoked by alias); 23 May 2008 05:44:42 -0000 Received: (qmail 17704 invoked by uid 22791); 23 May 2008 05:44:41 -0000 X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 May 2008 05:44:19 +0000 Received: by ti-out-0910.google.com with SMTP id d10so427319tib.12 for ; Thu, 22 May 2008 22:44:16 -0700 (PDT) Received: by 10.110.53.14 with SMTP id b14mr119929tia.8.1211521456446; Thu, 22 May 2008 22:44:16 -0700 (PDT) Received: by 10.110.109.4 with HTTP; Thu, 22 May 2008 22:44:16 -0700 (PDT) Message-ID: Date: Fri, 23 May 2008 18:16:00 -0000 From: Tea To: "Michael Snyder" Subject: Re: GDB record patch 0.1.3.1 for GDB-6.8 release Cc: gdb-patches@sourceware.org In-Reply-To: <1211518825.3601.95.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1211393440.3601.80.camel@localhost.localdomain> <1211394916.7957.47.camel@localhost.localdomain> <20080521184542.GA31895@caradoc.them.org> <1211402304.7957.76.camel@localhost.localdomain> <1211480158.3601.88.camel@localhost.localdomain> <1211518825.3601.95.camel@localhost.localdomain> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00679.txt.bz2 Maybe we can add both of them. In the default, GDB will call query to ask user what he want, read only or set value and destroy the future. And user can set GDB to always read only or always destroy. I think it's friendly to the user. teawater On Fri, May 23, 2008 at 1:00 PM, Michael Snyder wrote: > On Fri, 2008-05-23 at 11:04 +0800, Tea wrote: >> Hi Michael, >> >> How do you think about "query". I always forget the name of variable >> that can set by user. So I more like query than it. :) > > Sorry, we have an existing set of commands, and we > like to stay consistent with those. > > A user settable mode is set via the command "set". > Type "help set" and you'll see a large number of them. > They can have lots of different kinds of values, eg. > integers, strings, or small sets of enums like "on" and "off". > > It's not difficult, I can point you to a few examples > of how it's done if you like. > > Michael > > > >