aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-03-24 19:08:02 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-03-24 22:37:04 -0400
commit1e0a316632bf9c5e68daa4effa60a086ca378b36 (patch)
tree492dce250c97b027a40a67ea985a82abfc6a93c0 /gdb/frame.h
parent328d42d87e97c75d6e52800bfd4bc1bfdfb745d2 (diff)
downloadbinutils-1e0a316632bf9c5e68daa4effa60a086ca378b36.zip
binutils-1e0a316632bf9c5e68daa4effa60a086ca378b36.tar.gz
binutils-1e0a316632bf9c5e68daa4effa60a086ca378b36.tar.bz2
frame_debug_printf
Change-Id: I3c230b0814ea81c23af3e1aca1aac8d4ba91d726
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 597a459..7a23126 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -213,6 +213,11 @@ extern const struct frame_id outer_frame_id;
extern unsigned int frame_debug;
+/* Print a "frame" debug statement. */
+
+#define frame_debug_printf(fmt, ...) \
+ debug_prefixed_printf_cond (frame_debug, "frame", fmt, ##__VA_ARGS__)
+
/* 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).