aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2015-04-13 16:56:23 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2015-08-18 14:03:14 +0100
commit566f5e3b385a99c09b5babc9f90dae93e052d52c (patch)
tree229e1f15bd0ae0595f88537411d2a0db93dd3e93 /gdb/doc
parent18989b3c5642e2ba533e02737797dcf06134229b (diff)
downloadgdb-566f5e3b385a99c09b5babc9f90dae93e052d52c.zip
gdb-566f5e3b385a99c09b5babc9f90dae93e052d52c.tar.gz
gdb-566f5e3b385a99c09b5babc9f90dae93e052d52c.tar.bz2
gdb: Add debug tracing for bfd cache activity.
This patch adds a new debug flag bfd-cache, which when set to non-zero produces debugging log messages relating to gdb's bfd cache. gdb/ChangeLog: * gdb_bfd.c (debug_bfd_cache): New variable. (show_bfd_cache_debug): New function. (gdb_bfd_open): Add debug logging. (gdb_bfd_ref): Likewise. (gdb_bfd_unref): Likewise. (_initialize_gdb_bfd): Add new set/show command. * NEWS: Mention new command. gdb/doc/ChangeLog: * gdb.texinfo (File Caching): Document "set/show debug bfd-cache".
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7716917..b3dbc59 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,9 @@
2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
+ * gdb.texinfo (File Caching): Document "set/show debug bfd-cache".
+
+2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
+
* gdb.texinfo (Maintenance Commands): Move documentation of "main
info bfds" to...
(File Caching): A New section. Outline bfd caching, and add new
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index bd6b8e4..9322a52 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -18371,6 +18371,16 @@ already shared @code{bfd} objects to be unshared, but all future files
that are opened will create a new @code{bfd} object. Similarly,
re-enabling sharing does not cause multiple existing @code{bfd}
objects to be collapsed into a single shared @code{bfd} object.
+
+@kindex set debug bfd-cache @var{level}
+@kindex bfd caching
+@item set debug bfd-cache @var{level}
+Turns on debugging of the bfd cache, setting the level to @var{level}.
+
+@kindex show debug bfd-cache
+@kindex bfd caching
+@item show debug bfd-cache
+Show the current debugging level of the bfd cache.
@end table
@node Separate Debug Files