* [pushed] gdb: fix formatting of _debug_printf macros
@ 2020-09-25 18:55 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2020-09-25 18:55 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
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 | 5 +++++
gdb/infrun.h | 10 ++++++----
gdb/linux-nat.c | 10 ++++++----
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 57e46c486074..86a841de9d89 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/infrun.h b/gdb/infrun.h
index daf62a137cc8..d0dca67a4770 100644
--- a/gdb/infrun.h
+++ b/gdb/infrun.h
@@ -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;
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 44b59485d7b9..fbb538859429 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
{
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-25 18:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 18:55 [pushed] gdb: fix formatting of _debug_printf macros Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).