From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4310 invoked by alias); 24 Jan 2002 16:51:35 -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 4277 invoked from network); 24 Jan 2002 16:51:31 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 24 Jan 2002 16:51:31 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 6D92F3D8C; Thu, 24 Jan 2002 11:51:30 -0500 (EST) Message-ID: <3C503B92.5040900@cygnus.com> Date: Thu, 24 Jan 2002 08:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Eli Zaretskii , Michael Snyder , gdb-patches@sources.redhat.com Subject: Re: [RFA] New option "trust-readonly-sections" References: <20020124004435.A11710@nevyn.them.org> <20020124113550.A26125@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00724.txt.bz2 > On Thu, Jan 24, 2002 at 09:22:09AM +0200, Eli Zaretskii wrote: > >> >> On Thu, 24 Jan 2002, Daniel Jacobowitz wrote: >> > >> > I'd rather see this default to on. > >> >> That would be an incompatible change. I think we should avoid such >> changes, unless we have a very good reason. > > > Stan's reply was convincing. i guess I've been spoiled by > protected-memory situations. > > I'd personally like to object to your objection though, Eli. > Performance can be a very good reason. If it wasn't for the other > drawbacks, I'd consider the argument. > > Perhaps I'm in the minority there, though. (Would you go near someone wearing an asbestos suit? :-) It is really important that GDB doesn't lie. If the tweek is safe then certainly enable it. This tweek _isn't_ safe in embedded targets. The same goes for things like breakpoints. GDB pulls them so that the target is always left in a clean state. Not pulling them would be a performance bost (knowing the numbers not as much as this one!). BTW, there are other things that can also be done - for instance checking that the target text area hasn't changed. There is a qCRC packet (but from memory it was argued that wasn't strong enough). Andrew