[PATCH 5/5] set/show code-cache NEWS and doc

Yao Qi
2013-10-23T08:29:16Z

gdb:

2013-10-23 Yao Qi <yao@codesourcery.com>

* NEWS: Add note on new "set code-cache" option.

gdb/doc:

2013-10-23 Yao Qi <yao@codesourcery.com>

* gdb.texinfo (Caching Remote Data): Document new
`set/show stack-cache' option.
---
gdb/NEWS | 6 ++++++
gdb/doc/gdb.texinfo | 10 ++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/gdb/NEWS b/gdb/NEWS
index 10834df..2533b0c 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -98,6 +98,12 @@ set range-stepping
show range-stepping
Control whether target-assisted range stepping is enabled.

+set code-cache
+show code-cache
+ Use more aggressive caching for accesses to the code. This improves
+ performance of remote debugging (particularly disassemble) without
+ affecting correctness.
+
* You can now use a literal value 'unlimited' for options that
interpret 0 or -1 as meaning "unlimited". E.g., "set
trace-buffer-size unlimited" is now an alias for "set
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 44fb174..c80f17d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -10821,6 +10821,16 @@ caching. By default, this option is @code{ON}.
@item show stack-cache
Show the current state of data caching for memory accesses.

+@kindex set code-cache
+@item set code-cache on
+@itemx set code-cache off
+Enable or disable caching of code accesses. When @code{ON}, use
+caching. By default, this option is @code{ON}.
+
+@kindex show code-cache
+@item show code-cache
+Show the current state of data caching for code accesses.
+
@kindex info dcache
@item info dcache @r{[}line@r{]}
Print the information about the data cache performance. The
--
1.7.7.6