Fix formatting in ravenscar-thread.c
authorTom Tromey <tromey@adacore.com>
Tue, 5 Feb 2019 11:08:48 +0000 (04:08 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 15 Feb 2019 20:53:42 +0000 (13:53 -0700)
This fixes some incorrect formatting in ravenscar-thread.c.

gdb/ChangeLog
2019-02-15  Tom Tromey  <tromey@adacore.com>

* ravenscar-thread.c (ravenscar_runtime_initializer)
(has_ravenscar_runtime, get_running_thread_id)
(ravenscar_thread_target::resume): Fix indentation.

gdb/ChangeLog
gdb/ravenscar-thread.c

index cd1d477afccd5e67109504720ac968165d7f655c..ca6b7d09230c1e5af27597a73ba9f9f0d3d9143e 100644 (file)
@@ -1,3 +1,9 @@
+2019-02-15  Tom Tromey  <tromey@adacore.com>
+
+       * ravenscar-thread.c (ravenscar_runtime_initializer)
+       (has_ravenscar_runtime, get_running_thread_id)
+       (ravenscar_thread_target::resume): Fix indentation.
+
 2019-02-15  Tom Tromey  <tromey@adacore.com>
 
        * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
index 95c4046724163b15582e61a2acb9b4f47fab5d65..0e0b6f2d785a24deefa0cfdfee1da3f8119a62e4 100644 (file)
@@ -70,8 +70,8 @@ static const char running_thread_name[] = "__gnat_running_thread_table";
 static const char known_tasks_name[] = "system__tasking__debug__known_tasks";
 static const char first_task_name[] = "system__tasking__debug__first_task";
 
-static const char ravenscar_runtime_initializer[] =
-  "system__bb__threads__initialize";
+static const char ravenscar_runtime_initializer[]
+  "system__bb__threads__initialize";
 
 static const target_info ravenscar_target_info = {
   "ravenscar",
@@ -263,12 +263,12 @@ get_running_thread_msymbol (void)
 static int
 has_ravenscar_runtime (void)
 {
-  struct bound_minimal_symbol msym_ravenscar_runtime_initializer =
-    lookup_minimal_symbol (ravenscar_runtime_initializer, NULL, NULL);
-  struct bound_minimal_symbol msym_known_tasks =
-    lookup_minimal_symbol (known_tasks_name, NULL, NULL);
-  struct bound_minimal_symbol msym_first_task =
-    lookup_minimal_symbol (first_task_name, NULL, NULL);
+  struct bound_minimal_symbol msym_ravenscar_runtime_initializer
+    lookup_minimal_symbol (ravenscar_runtime_initializer, NULL, NULL);
+  struct bound_minimal_symbol msym_known_tasks
+    lookup_minimal_symbol (known_tasks_name, NULL, NULL);
+  struct bound_minimal_symbol msym_first_task
+    lookup_minimal_symbol (first_task_name, NULL, NULL);
   struct bound_minimal_symbol msym_running_thread
     = get_running_thread_msymbol ();
 
@@ -297,8 +297,8 @@ get_running_thread_id (int cpu)
   int buf_size;
   gdb_byte *buf;
   CORE_ADDR object_addr;
-  struct type *builtin_type_void_data_ptr =
-    builtin_type (target_gdbarch ())->builtin_data_ptr;
+  struct type *builtin_type_void_data_ptr
+    builtin_type (target_gdbarch ())->builtin_data_ptr;
 
   if (!object_msym.minsym)
     return 0;
@@ -313,7 +313,8 @@ get_running_thread_id (int cpu)
 }
 
 void
-ravenscar_thread_target::resume (ptid_t ptid, int step, enum gdb_signal siggnal)
+ravenscar_thread_target::resume (ptid_t ptid, int step,
+                                enum gdb_signal siggnal)
 {
   inferior_ptid = base_ptid;
   beneath ()->resume (base_ptid, step, siggnal);