diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2011-07-26 15:24:01 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2011-07-26 15:24:01 +0000 |
commit | 8f45e6a5b032b5b14fa56df004c5c175964e811c (patch) | |
tree | 25de1b31b88022a0d75c29b1f53184a2f06c4c29 /gdb/doc | |
parent | 6447056c074a55e63a5cbe15e75d19fbbbdd3ef1 (diff) | |
download | gdb-8f45e6a5b032b5b14fa56df004c5c175964e811c.tar.gz |
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/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 34590f6c931..b636a95f601 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 16bb6bc7f52..b5cfc7d8a3d 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 |