diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-11-28 11:43:13 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-12-02 14:40:24 -0500 |
commit | e26d0dab1018d9ed6eaf3ab127ce9928cd8ac271 (patch) | |
tree | 1d7c5a87c703d5db087903925e866b170cc03a45 /gdb/solib.h | |
parent | ac57bf55472df186dc9fb63f7787f740d457f473 (diff) | |
download | fsf-binutils-gdb-e26d0dab1018d9ed6eaf3ab127ce9928cd8ac271.zip fsf-binutils-gdb-e26d0dab1018d9ed6eaf3ab127ce9928cd8ac271.tar.gz fsf-binutils-gdb-e26d0dab1018d9ed6eaf3ab127ce9928cd8ac271.tar.bz2 |
gdb: merge solib-frv aix-solib debug options into "set/show debug solib"
solib implementations are typically used one at a time. So it will be
rare that you will want to enable debug for one solib kind, and
absolutely want to keep the others disabled. To make things simpler,
instead of adding separate variables / macros / commands for each solib
implementation, merge the existing ones (frv and aix) into a unified
"set/show debug solib", with the solib_debug_printf macro.
Change-Id: I6e18bbc7401724f37ae66681badb079d75ecf7fa
Diffstat (limited to 'gdb/solib.h')
-rw-r--r-- | gdb/solib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/solib.h b/gdb/solib.h index a7e751e..7406668 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -29,6 +29,18 @@ struct program_space; #include "gdb_bfd.h" #include "symfile-add-flags.h" +/* Value of the 'set debug solib' configuration variable. */ + +extern bool debug_solib; + +/* Print an "solib" debug statement. */ + +#define solib_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (debug_solib, "solib", fmt, ##__VA_ARGS__) + +#define SOLIB_SCOPED_DEBUG_START_END(fmt, ...) \ + scoped_debug_start_end (debug_solib, "solib", fmt, ##__VA_ARGS__) + /* Called when we free all symtabs, to free the shared library information as well. */ |