aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index d79ea84..3666ed6 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -202,7 +202,12 @@ show_debug_linux_nat (struct ui_file *file, int from_tty,
/* Print a linux-nat debug statement. */
#define linux_nat_debug_printf(fmt, ...) \
- debug_prefixed_printf ("linux-nat", __func__, fmt, ##__VA_ARGS__)
+ do \
+ { \
+ if (debug_linux_nat) \
+ debug_prefixed_printf ("linux-nat", __func__, fmt, ##__VA_ARGS__); \
+ } \
+ while (0)
struct simple_pid_list
{