This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 09/10] set/show code-cache
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 03 Nov 2013 18:57:39 +0200
- Subject: Re: [PATCH 09/10] set/show code-cache
- Authentication-results: sourceware.org; auth=none
- References: <1383458049-20893-1-git-send-email-yao at codesourcery dot com> <1383458049-20893-10-git-send-email-yao at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Yao Qi <yao@codesourcery.com>
> 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 <yao@codesourcery.com>
>
> * 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) <TARGET_OBJECT_CODE_MEMORY>:
> New.
> (target_read_code): Declare.
>
> gdb/doc:
>
> 2013-11-02 Yao Qi <yao@codesourcery.com>
>
> * gdb.texinfo (Caching Remote Data): Document new
> `set/show stack-cache' option.
The documentation parts are OK, thanks.