aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2011-07-26 15:24:02 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2011-07-26 15:24:02 +0000
commit1a532630dc4d78abd1ddf6e4a97e789dad88787d (patch)
treee4fa4413a5e76c782f3761f0cf31b07aa70a0e25 /gdb/doc
parent2eff07b325d8e8d6719844464d744c008860a6a3 (diff)
downloadgdb-1a532630dc4d78abd1ddf6e4a97e789dad88787d.zip
gdb-1a532630dc4d78abd1ddf6e4a97e789dad88787d.tar.gz
gdb-1a532630dc4d78abd1ddf6e4a97e789dad88787d.tar.bz2
2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
* NEWS: Mention dcache configuration. * dcache.c (dcache_set_list, dcache_show_list): New variables. (dcache_size, dcache_line_size): New variables. (LINE_SIZE_MASK, XFORM, MASK): Adjust. (struct dcache_block): Make it expandable. (struct dcache_struct): New field. (dcache_invalidate): Discard freelist upon dcache_line_size changes. (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust. (dcache_poke_byte, dcache_print_line): Adjust. (set_dcache_size, set_dcache_line_size): New functions. (set_dcache_command, show_dcache_command): New functions. (_initialize_dcache): Add new commands. doc/ChangeLog: 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.texinfo (Caching Remote Data): Document {set,show} dcache size and line-size.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo20
2 files changed, 25 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 34590f6..b636a95 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * gdb.texinfo (Caching Remote Data): Document {set,show} dcache
+ size and line-size.
+
2011-07-21 Matt Rice <ratmice@gmail.com>
PR macros/12999
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 16bb6bc..b5cfc7d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -9332,6 +9332,26 @@ operation.
If a line number is specified, the contents of that line will be
printed in hex.
+
+@item set dcache size @var{size}
+@cindex dcache size
+@kindex set dcache size
+Set maximum number of entries in dcache (dcache depth above).
+
+@item set dcache line-size @var{line-size}
+@cindex dcache line-size
+@kindex set dcache line-size
+Set number of bytes each dcache entry caches (dcache width above).
+Must be a power of 2.
+
+@item show dcache size
+@kindex show dcache size
+Show maximum number of dcache entries. See also @ref{Caching Remote Data, info dcache}.
+
+@item show dcache line-size
+@kindex show dcache line-size
+Show default size of dcache lines. See also @ref{Caching Remote Data, info dcache}.
+
@end table
@node Searching Memory