From: Joel Brobecker Date: Fri, 31 Jan 2014 13:56:12 +0000 (+0400) Subject: [Ada] Rename some observer callbacks in ada-tasks.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=143adbbfa31d98b59c0a1509ac3819cc64b241c8;p=binutils-gdb.git [Ada] Rename some observer callbacks in ada-tasks.c 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 84162d2af74..c94a5ddbf8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2014-02-10 Joel Brobecker + + * 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 * ada-lang.c (ada_evaluate_subexp): Set the type of the value diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index a83035f2e2a..8af6da13943 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -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,