diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-25 14:54:16 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-25 14:54:16 -0400 |
commit | 956bdb595bdcbf65598d7154560ea214849df899 (patch) | |
tree | 27c1573e1124463def646a01ce6a542d61255a13 /gdb/linux-nat.c | |
parent | 3b93626be9951b0f49f3e1609ddab53f86f712e1 (diff) | |
download | gdb-956bdb595bdcbf65598d7154560ea214849df899.zip gdb-956bdb595bdcbf65598d7154560ea214849df899.tar.gz gdb-956bdb595bdcbf65598d7154560ea214849df899.tar.bz2 |
gdb: fix formatting of _debug_printf macros
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
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 44b5948..fbb5388 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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 { |