This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 6/6] gdbserver: whitespace, move text out of column one


Hi.

This patch moves labels and debugging text out of column one
so that various tools will show me the right function name in patch output.

2013-12-17  Doug Evans  <dje@google.com>

	* linux-low.c (linux_attach): Whitespace change, don't begin debugging
	text in column one.
	(maybe_move_out_of_jump_pad): Ditto.
	(enqueue_one_deferred_signal): Ditto.
	(linux_wait_for_lwp): Whitespace change, indent "retry" label.
	(linux_wait_1): Ditto.  Don't begin debugging text in column one.

---
 gdb/gdbserver/linux-low.c | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 7b0514d..74c02ed 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -836,8 +836,8 @@ linux_attach (unsigned long pid)
 		      new_threads_found++;
 
 		      if (debug_threads)
-			fprintf (stderr, "\
-Found and attached to new lwp %ld\n", lwp);
+			fprintf (stderr, "Found and attached to new lwp %ld\n",
+				 lwp);
 		    }
 		}
 
@@ -1300,7 +1300,7 @@ linux_wait_for_lwp (ptid_t ptid, int *wstatp, int options)
 
   options |= __WALL;
 
-retry:
+ retry:
 
   ret = my_waitpid (to_wait_for, wstatp, options);
   if (ret == 0 || (ret == -1 && errno == ECHILD && (options & WNOHANG)))
@@ -1516,8 +1516,8 @@ maybe_move_out_of_jump_pad (struct lwp_info *lwp, int *wstat)
       int r;
 
       if (debug_threads)
-	fprintf (stderr, "\
-Checking whether LWP %ld needs to move out of the jump pad.\n",
+	fprintf (stderr, "Checking whether LWP %ld needs to move out of the "
+		 "jump pad.\n",
 		 lwpid_of (lwp));
 
       r = linux_fast_tracepoint_collecting (lwp, &status);
@@ -1542,9 +1542,9 @@ Checking whether LWP %ld needs to move out of the jump pad.\n",
 		}
 
 	      if (debug_threads)
-		fprintf (stderr, "\
-Checking whether LWP %ld needs to move out of the jump pad...it does\n",
-		 lwpid_of (lwp));
+		fprintf (stderr, "Checking whether LWP %ld needs to move out "
+			 "of the jump pad...it does\n",
+			 lwpid_of (lwp));
 	      current_inferior = saved_inferior;
 
 	      return 1;
@@ -1615,8 +1615,9 @@ Checking whether LWP %ld needs to move out of the jump pad...it does\n",
     }
 
   if (debug_threads)
-    fprintf (stderr, "\
-Checking whether LWP %ld needs to move out of the jump pad...no\n",
+    fprintf (stderr,
+	     "Checking whether LWP %ld needs to move out of the jump pad"
+	     "...no\n",
 	     lwpid_of (lwp));
 
   current_inferior = saved_inferior;
@@ -1632,8 +1633,8 @@ enqueue_one_deferred_signal (struct lwp_info *lwp, int *wstat)
   struct pending_signals *p_sig;
 
   if (debug_threads)
-    fprintf (stderr, "\
-Deferring signal %d for LWP %ld.\n", WSTOPSIG (*wstat), lwpid_of (lwp));
+    fprintf (stderr, "Deferring signal %d for LWP %ld.\n",
+	     WSTOPSIG (*wstat), lwpid_of (lwp));
 
   if (debug_threads)
     {
@@ -2289,7 +2290,7 @@ linux_wait_1 (ptid_t ptid,
   if (target_options & TARGET_WNOHANG)
     options |= WNOHANG;
 
-retry:
+ retry:
   bp_explains_trap = 0;
   trace_event = 0;
   in_step_range = 0;
@@ -2485,9 +2486,9 @@ retry:
   if (event_child->collecting_fast_tracepoint)
     {
       if (debug_threads)
-	fprintf (stderr, "\
-LWP %ld was trying to move out of the jump pad (%d).  \
-Check if we're already there.\n",
+	fprintf (stderr,
+		 "LWP %ld was trying to move out of the jump pad (%d)."
+		 "  Check if we're already there.\n",
 		 lwpid_of (event_child),
 		 event_child->collecting_fast_tracepoint);
 
-- 
1.8.5.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]