From 566f5e3b385a99c09b5babc9f90dae93e052d52c Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 13 Apr 2015 16:56:23 +0100 Subject: 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". --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'gdb/doc') 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 + * gdb.texinfo (File Caching): Document "set/show debug bfd-cache". + +2015-08-18 Andrew Burgess + * 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 -- cgit v1.1