gdb: Add debug tracing for bfd cache activity.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 13 Apr 2015 15:56:23 +0000 (16:56 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 18 Aug 2015 13:03:14 +0000 (14:03 +0100)
commit566f5e3b385a99c09b5babc9f90dae93e052d52c
tree229e1f15bd0ae0595f88537411d2a0db93dd3e93
parent18989b3c5642e2ba533e02737797dcf06134229b
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/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/gdb_bfd.c