From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20968 invoked by alias); 20 Sep 2013 02:47:55 -0000 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 Received: (qmail 20933 invoked by uid 89); 20 Sep 2013 02:47:55 -0000 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Sep 2013 02:47:55 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RDNS_NONE,SPF_HELO_FAIL autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1VMql5-0004iA-Op from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 19 Sep 2013 19:47:51 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 19 Sep 2013 19:47:51 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 19 Sep 2013 19:47:51 -0700 From: Yao Qi To: Subject: [PATCH 5/7] DOC and NEWS Date: Fri, 20 Sep 2013 02:47:00 -0000 Message-ID: <1379645226-8719-6-git-send-email-yao@codesourcery.com> In-Reply-To: <1379645226-8719-1-git-send-email-yao@codesourcery.com> References: <1378641807-24256-1-git-send-email-yao@codesourcery.com> <1379645226-8719-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00719.txt.bz2 -V3: Mention "in remote debugging". gdb: 2013-09-20 Yao Qi * NEWS: Describe the default option of "trust-readonly-sections" becomes "auto" and the related changes. gdb/doc: 2013-09-20 Yao Qi * gdb.texinfo (File): Mention that user has 'set trust-readonly-sections off' to get updated contents if they are modified. Explain the default option of "trust-readonly-sections" is "auto". --- gdb/NEWS | 5 +++++ gdb/doc/gdb.texinfo | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index 5eb046b..5a70adc 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,11 @@ *** Changes since GDB 7.6 +* The default value of option "trust-readonly-sections" is "auto". In + remote debugging, GDB will decide based on the target memory + protection features whether to read readonly sections from object + file instead of from the inferior's memory. + * The "maintenance print objfiles" command now takes an optional regexp. * The "catch syscall" command now works on arm*-linux* targets. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a8c854e..a26160e 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -16673,12 +16673,20 @@ out of the object file, rather than from the target program. For some targets (notably embedded ones), this can be a significant enhancement to debugging performance. -The default is off. +@item set trust-readonly-sections auto +This is the default mode. In remote debugging, @value{GDBN} will +decide based on the target memory protection features whether to +read readonly sections from object file instead of from the inferior's +memory, because the contents of the section in the inferior can't +change. @item set trust-readonly-sections off Tell @value{GDBN} not to trust readonly sections. This means that the contents of the section might change while the program is running, -and must therefore be fetched from the target when needed. +and must therefore be fetched from the target when needed. If you +modified the code in the target program, you have to +@code{set trust-readonly-sections off} to guarantee @value{GDBN} reads +updated contents from the target program instead of object file. @item show trust-readonly-sections Show the current setting of trusting readonly sections. -- 1.7.7.6