This is the mail archive of the gdb-patches@sources.redhat.com 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] |
Hello again, Following a small discussion in gdb@, I have written a small regression test for observer.c. http://sources.redhat.com/ml/gdb/2003-03/msg00147.html The test is done by doing inferior function calls to the normal_stop observer routines. The sticky point is that the attach routine needs to be provided with a function pointer (callback). This patch adds 3 static counters and 3 static functions that simply increment these counters. These functions will be provided to the attach routine during the test (See upcoming testsuite patch for more details) 2003-03-17 J. Brobecker <brobecker at gnat dot com> * observer.c (observer_test_first_observer): New static variable. (observer_test_second_observer): Likewise. (observer_test_third_observer): Likewise. (observer_test_first_notification_function): New static function. (observer_test_second_notification_function): Likewise. (observer_test_third_notification_function): Likewise. Ok to apply? Thanks, -- Joel
Attachment:
observer.c.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |