Index: observer.c =================================================================== RCS file: /cvs/src/src/gdb/observer.c,v retrieving revision 1.2 diff -c -3 -p -r1.2 observer.c *** observer.c 28 Feb 2003 07:19:32 -0000 1.2 --- observer.c 18 Mar 2003 01:51:47 -0000 *************** observer_notify_normal_stop (void) *** 190,192 **** --- 190,218 ---- { generic_observer_notify (normal_stop_subject, NULL); } + + /* The following code is only used to unit-test the observers from + our testsuite. DO NOT USE IT within observer.c! */ + + static int observer_test_first_observer = 0; + static int observer_test_second_observer = 0; + static int observer_test_third_observer = 0; + + static void + observer_test_first_notification_function (void) + { + observer_test_first_observer++; + } + + static void + observer_test_second_notification_function (void) + { + observer_test_second_observer++; + } + + static void + observer_test_third_notification_function (void) + { + observer_test_third_observer++; + } +