diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-11-20 19:34:21 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-12-13 12:36:16 +0000 |
commit | ee9812a00153ad788319dae1cde901cf216f9fba (patch) | |
tree | f70cd83590cd7d42a6e81d6f7958bce5b40a1d45 /gdb/doc | |
parent | 50a5f1878e22b09ebea30ad60a2164b80af6efdb (diff) | |
download | gdb-ee9812a00153ad788319dae1cde901cf216f9fba.zip gdb-ee9812a00153ad788319dae1cde901cf216f9fba.tar.gz gdb-ee9812a00153ad788319dae1cde901cf216f9fba.tar.bz2 |
gdb: new command 'maint flush dcache'
Add a new command to flush the dcache.
gdb/ChangeLog:
* NEWS: Mention new commands.
* target-dcache.c: Add 'cli/cli-cmds.h' include.
(maint_flush_dcache_command): New function.
(_initialize_target_dcache): Create new 'maint flush dcache'
command.
gdb/doc/ChangeLog:
* gdb.texinfo (Caching Target Data): Document 'maint flush
dcache'.
gdb/testsuite/ChangeLog:
* gdb.base/dcache-flush.c: New file.
* gdb.base/dcache-flush.exp: New file.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 6ad728e..5650974 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com> + * gdb.texinfo (Caching Target Data): Document 'maint flush + dcache'. + +2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com> + * gdb.texinfo (Symbols): Document 'maint flush symbol-cache'. (Maintenance Commands): Document 'maint flush register-cache'. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5bafb9d..5b6ac854 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -13494,6 +13494,12 @@ Show maximum number of dcache entries. @xref{Caching Target Data, info dcache}. @kindex show dcache line-size Show default size of dcache lines. +@item maint flush dcache +@cindex dcache, flushing +@kindex maint flush dcache +Flush the contents (if any) of the dcache. This maintainer command is +useful when debugging the dcache implementation. + @end table @node Searching Memory |