gdb: fix formatting of _debug_printf macros
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 25 Sep 2020 18:54:16 +0000 (14:54 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 25 Sep 2020 18:54:16 +0000 (14:54 -0400)
The do/while in these macros are not formatted with proper GNU style,
fix that.

gdb/ChangeLog:

* infrun.h (infrun_debug_printf): Fix formatting.
* linux-nat.c (linux_nat_debug_printf): Fix formatting.

Change-Id: I3a723663c76d9091f785941923c2b6cf67459629

gdb/ChangeLog
gdb/infrun.h
gdb/linux-nat.c

index 57e46c48607433a798726570dd134579c75540b0..86a841de9d8967755b59bafc104a278acacd2fb4 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-25  Simon Marchi  <simon.marchi@efficios.com>
+
+       * infrun.h (infrun_debug_printf): Fix formatting.
+       * linux-nat.c (linux_nat_debug_printf): Fix formatting.
+
 2020-09-25  Saagar Jha  <saagar@saagarjha.com>
 
        * compile/compile-object-load.h (struct munmap_list): Add
index daf62a137cc89d1b6ecae932d4ad0b91d97699d6..d0dca67a4770110defd832a87f0a2473d20440b4 100644 (file)
@@ -37,10 +37,12 @@ void ATTRIBUTE_PRINTF (2, 3) infrun_debug_printf_1
   (const char *func_name, const char *fmt, ...);
 
 #define infrun_debug_printf(fmt, ...) \
-  do { \
-    if (debug_infrun) \
-      infrun_debug_printf_1 (__func__, fmt, ##__VA_ARGS__); \
-  } while (0)
+  do \
+    { \
+      if (debug_infrun) \
+       infrun_debug_printf_1 (__func__, fmt, ##__VA_ARGS__); \
+    } \
+  while (0)
 
 /* True if we are debugging displaced stepping.  */
 extern bool debug_displaced;
index 44b59485d7b98355d4c16a875a025359d1f2666e..fbb5388594293b14f9b1f922f32384fda56877df 100644 (file)
@@ -211,10 +211,12 @@ linux_nat_debug_printf_1 (const char *func_name, const char *fmt, ...)
 }
 
 #define linux_nat_debug_printf(fmt, ...) \
-  do { \
-    if (debug_linux_nat) \
-      linux_nat_debug_printf_1 (__func__, fmt, ##__VA_ARGS__); \
-  } while (0)
+  do \
+    { \
+      if (debug_linux_nat) \
+       linux_nat_debug_printf_1 (__func__, fmt, ##__VA_ARGS__); \
+    } \
+  while (0)
 
 struct simple_pid_list
 {
This page took 0.051062 seconds and 4 git commands to generate.