From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26465 invoked by alias); 22 Jan 2010 18:19:20 -0000 Received: (qmail 26456 invoked by uid 22791); 22 Jan 2010 18:19:20 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jan 2010 18:19:16 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id CF0AF4907A; Fri, 22 Jan 2010 10:19:12 -0800 (PST) Received: from [10.20.125.16] (unknown [10.20.125.16]) by mailhost4.vmware.com (Postfix) with ESMTP id C6255C9FD3; Fri, 22 Jan 2010 10:19:12 -0800 (PST) Message-ID: <4B59EBEC.7060800@vmware.com> Date: Fri, 22 Jan 2010 18:19:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20090624) MIME-Version: 1.0 To: Paul Koning CC: Jie Zhang , Dave Korn , "gdb@sourceware.org" Subject: Re: Reset breakpoint after load? References: <4B5560E0.3080901@analog.com> <4B582A02.2040501@gmail.com> <4B589CF2.2040304@vmware.com> <20100121211950.GA11880@caradoc.them.org> <4B58D811.8070604@analog.com> <4B5915CB.7090705@analog.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00186.txt.bz2 Paul Koning wrote: >> On 01/22/2010 10:15 AM, Paul Koning wrote: >>> Yes, but... doesn't GDB take read-only data from the executable file >>> rather than from the target? If so then it should not matter. >> That's >>> what "set trust-readonly-sections" does. Or is it off by default? >> Turn >>> it on, that's good for performance anyway. >>> >> I just tested this method and confirm that "set > trust-readonly-sections >> on" also works. According to the manual, this option is off by > default. > > Right, I noticed that it's set that way. I have a GDB with local mods > for our embedded system work; one of the mods is to change the default > to "on". That makes debug much faster and makes sense in any case. > It's very rare to need it to be off. We defaulted it to 'off' when first implemented, just to be conservative. Haven't heard of it causing any problems since then, so perhaps it's time to default it to 'on'.