From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4943 invoked by alias); 3 Nov 2013 16:58:54 -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 4931 invoked by uid 89); 3 Nov 2013 16:58:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_SOFTFAIL,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mtaout22.012.net.il Received: from Unknown (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Nov 2013 16:57:58 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MVP00J005M93J00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sun, 03 Nov 2013 18:57:49 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVP00II15SAPVA0@a-mtaout22.012.net.il>; Sun, 03 Nov 2013 18:57:47 +0200 (IST) Date: Sun, 03 Nov 2013 16:58:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 09/10] set/show code-cache In-reply-to: <1383458049-20893-10-git-send-email-yao@codesourcery.com> To: Yao Qi Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83iow9a0e4.fsf@gnu.org> References: <1383458049-20893-1-git-send-email-yao@codesourcery.com> <1383458049-20893-10-git-send-email-yao@codesourcery.com> X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00045.txt.bz2 > From: Yao Qi > Date: Sun, 3 Nov 2013 13:54:09 +0800 > > Similar to stack cache, in this patch, we add > TARGET_OBJECT_CODE_MEMORY to read code from target and add a new > option "set code-cache on|off" to control use code cache or not. > > gdb: > > 2013-11-02 Yao Qi > > * NEWS: Add note on new "set code-cache" option. > * target-dcache.c (code_cache_enabled_p): New. > (show_code_cache_enabled_p): New function. > (code_cache_enabled): New function. > (_initialize_target_dcache): Register command. > * target-dcache.h (code_cache_enabled): Declare. > * target.c (memory_xfer_partial_1):Handle > TARGET_OBJECT_CODE_MEMORY and code_cache_enabled. > (target_read_code): New function. > * target.h (enum target_object) : > New. > (target_read_code): Declare. > > gdb/doc: > > 2013-11-02 Yao Qi > > * gdb.texinfo (Caching Remote Data): Document new > `set/show stack-cache' option. The documentation parts are OK, thanks.