gdb: factor out debug_prefixed_printf_cond
[deliverable/binutils-gdb.git] / gdb / linux-nat.c
index 3666ed6f9237fd05fc76853e532b96eec06b761d..da5f277b5530ca386205ef983363354eb786bac7 100644 (file)
@@ -202,12 +202,7 @@ show_debug_linux_nat (struct ui_file *file, int from_tty,
 /* Print a linux-nat debug statement.  */
 
 #define linux_nat_debug_printf(fmt, ...) \
-  do \
-    { \
-      if (debug_linux_nat) \
-       debug_prefixed_printf ("linux-nat", __func__, fmt, ##__VA_ARGS__); \
-    } \
-  while (0)
+  debug_prefixed_printf_cond (debug_linux_nat, "linux-nat", fmt, ##__VA_ARGS__)
 
 struct simple_pid_list
 {
@@ -802,7 +797,7 @@ linux_nat_target::pass_signals
     {
       int target_signo = gdb_signal_from_host (signo);
       if (target_signo < pass_signals.size () && pass_signals[target_signo])
-        sigaddset (&pass_mask, signo);
+       sigaddset (&pass_mask, signo);
     }
 }
 
@@ -1044,7 +1039,7 @@ linux_nat_post_attach_wait (ptid_t ptid, int *signalled)
         ptrace stop.  Make sure it is in a ptrace stop; from there we
         can kill it, signal it, et cetera.
 
-         First make sure there is a pending SIGSTOP.  Since we are
+        First make sure there is a pending SIGSTOP.  Since we are
         already attached, the process can not transition from stopped
         to running without a PTRACE_CONT; so we know this signal will
         go into the queue.  The SIGSTOP generated by PTRACE_ATTACH is
@@ -3621,7 +3616,7 @@ siginfo_fixup (siginfo_t *siginfo, gdb_byte *inf_siginfo, int direction)
 
 static enum target_xfer_status
 linux_xfer_siginfo (enum target_object object,
-                    const char *annex, gdb_byte *readbuf,
+                   const char *annex, gdb_byte *readbuf,
                    const gdb_byte *writebuf, ULONGEST offset, ULONGEST len,
                    ULONGEST *xfered_len)
 {
This page took 0.025945 seconds and 4 git commands to generate.