]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/frame.h
gdb: introduce frame_debug_printf
[thirdparty/binutils-gdb.git] / gdb / frame.h
index 33ca5ab6f1f2ac275f5faf6cc89a5ff454bb5295..f8314ad66ceb7ead2f0de1f4a71e574c9a15687f 100644 (file)
@@ -216,6 +216,11 @@ extern const struct frame_id outer_frame_id;
 
 extern bool 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).