diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-20 22:38:20 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-20 22:38:20 -0500 |
commit | d4dd4fca16e2eaa35678546b1172ee4ff1f957eb (patch) | |
tree | 8417eb22a1cc2b24966517f7da06f6c56183cfce | |
parent | f9e9ba90b331e76c2ef93db3242a910f5985933e (diff) | |
download | binutils-d4dd4fca16e2eaa35678546b1172ee4ff1f957eb.zip binutils-d4dd4fca16e2eaa35678546b1172ee4ff1f957eb.tar.gz binutils-d4dd4fca16e2eaa35678546b1172ee4ff1f957eb.tar.bz2 |
gdb: change debug_bfd_cache to bool
gdb/ChangeLog:
* gdb_bfd.c (debug_bfd_cache): Change type to bool.
(_initialize_gdb_bfd): Adjust.
Change-Id: I90fdcc2e2d405653d0eba776f316bcec361b2d18
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdb_bfd.c | 20 |
2 files changed, 16 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ed01ed7..d0e9633 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> + * gdb_bfd.c (debug_bfd_cache): Change type to bool. + (_initialize_gdb_bfd): Adjust. + +2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> + PR gdb/26828 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion. diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index 509bf2c..9892166 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -134,9 +134,10 @@ show_bfd_sharing (struct ui_file *file, int from_tty, fprintf_filtered (file, _("BFD sharing is %s.\n"), value); } -/* When non-zero debugging of the bfd caches is enabled. */ +/* When true debugging of the bfd caches is enabled. */ + +static bool debug_bfd_cache; -static unsigned int debug_bfd_cache; static void show_bfd_cache_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) @@ -1105,12 +1106,13 @@ filename, file size, file modification time, and file inode."), &maintenance_set_cmdlist, &maintenance_show_cmdlist); - add_setshow_zuinteger_cmd ("bfd-cache", class_maintenance, - &debug_bfd_cache, _("\ -Set bfd cache debugging."), _("\ -Show bfd cache debugging."), _("\ + add_setshow_boolean_cmd ("bfd-cache", class_maintenance, + &debug_bfd_cache, + _("Set bfd cache debugging."), + _("Show bfd cache debugging."), + _("\ When non-zero, bfd cache specific debugging is enabled."), - NULL, - &show_bfd_cache_debug, - &setdebuglist, &showdebuglist); + NULL, + &show_bfd_cache_debug, + &setdebuglist, &showdebuglist); } |