[Ada] Rename some observer callbacks in ada-tasks.c
authorJoel Brobecker <brobecker@adacore.com>
Fri, 31 Jan 2014 13:56:12 +0000 (17:56 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 10 Feb 2014 09:44:01 +0000 (13:44 +0400)
This patch is mostly cosmetic, avoiding us to use the same callback
names as in ada-lang.c.

gdb/ChangeLog:

        * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
        ada_new_objfile_observer.
        (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
        (_initialize_tasks): Update uses of ada_new_objfile_observer
        and ada_tasks_normal_stop_observer.

gdb/ChangeLog
gdb/ada-tasks.c

index 84162d2af7416098ba70be7e2235e9e60db18656..c94a5ddbf8f59dc10bc5f811ea7148801ca4ab66 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
+       ada_new_objfile_observer.
+       (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
+       (_initialize_tasks): Update uses of ada_new_objfile_observer
+       and ada_tasks_normal_stop_observer.
+
 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c (ada_evaluate_subexp): Set the type of the value
index a83035f2e2af92e0e4301d34d4b1855a5db439b8..8af6da139434515a3195b7ccfb3c989d196f3d64 100644 (file)
@@ -1385,7 +1385,7 @@ ada_tasks_invalidate_inferior_data (struct inferior *inf)
 /* The 'normal_stop' observer notification callback.  */
 
 static void
-ada_normal_stop_observer (struct bpstats *unused_args, int unused_args2)
+ada_tasks_normal_stop_observer (struct bpstats *unused_args, int unused_args2)
 {
   /* The inferior has been resumed, and just stopped. This means that
      our task_list needs to be recomputed before it can be used again.  */
@@ -1395,7 +1395,7 @@ ada_normal_stop_observer (struct bpstats *unused_args, int unused_args2)
 /* A routine to be called when the objfiles have changed.  */
 
 static void
-ada_new_objfile_observer (struct objfile *objfile)
+ada_tasks_new_objfile_observer (struct objfile *objfile)
 {
   struct inferior *inf;
 
@@ -1438,8 +1438,8 @@ _initialize_tasks (void)
   ada_tasks_inferior_data_handle = register_inferior_data ();
 
   /* Attach various observers.  */
-  observer_attach_normal_stop (ada_normal_stop_observer);
-  observer_attach_new_objfile (ada_new_objfile_observer);
+  observer_attach_normal_stop (ada_tasks_normal_stop_observer);
+  observer_attach_new_objfile (ada_tasks_new_objfile_observer);
 
   /* Some new commands provided by this module.  */
   add_info ("tasks", info_tasks_command,
This page took 0.027722 seconds and 4 git commands to generate.