diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-03-24 22:54:39 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-03-24 23:00:56 -0400 |
commit | 7fe4c96eba9d6bc48c6b92d16ab332e4a277f332 (patch) | |
tree | f72d2df0a7907350e456f8e5b79dda6eb9baa45e /gdb/frame.h | |
parent | 1e0a316632bf9c5e68daa4effa60a086ca378b36 (diff) | |
download | binutils-7fe4c96eba9d6bc48c6b92d16ab332e4a277f332.zip binutils-7fe4c96eba9d6bc48c6b92d16ab332e4a277f332.tar.gz binutils-7fe4c96eba9d6bc48c6b92d16ab332e4a277f332.tar.bz2 |
gdb: introduce FRAME_SCOPED_DEBUG_ENTER_EXIT
Change-Id: I45b69b4ed962e70572bc55b8adfb211483c1eeed
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 7a23126..bcd2d47 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -71,6 +71,7 @@ #include "language.h" #include "cli/cli-option.h" +#include "gdbsupport/common-debug.h" struct symtab_and_line; struct frame_unwind; @@ -211,13 +212,16 @@ extern const struct frame_id outer_frame_id; /* Flag to control debugging. */ -extern unsigned int frame_debug; +extern bool frame_debug; /* Print a "frame" debug statement. */ #define frame_debug_printf(fmt, ...) \ debug_prefixed_printf_cond (frame_debug, "frame", fmt, ##__VA_ARGS__) +#define FRAME_SCOPED_DEBUG_ENTER_EXIT \ + scoped_debug_enter_exit (frame_debug, "frame") + /* Construct a frame ID. The first parameter is the frame's constant stack address (typically the outer-bound), and the second the frame's constant code address (typically the entry point). |