X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fobserver.c;h=fb9beb1e9636272b3692a411ce0ff4361e16e99a;hb=809df4465f01277ab689fb82b3f16ff79f9a2606;hp=8a059c1f6a96410895a90b76720fa8587ad892fb;hpb=0fb0cc7590113e9b459dfcc48dc71c9d419d9580;p=binutils-gdb.git diff --git a/gdb/observer.c b/gdb/observer.c index 8a059c1f6a9..fb9beb1e963 100644 --- a/gdb/observer.c +++ b/gdb/observer.c @@ -1,6 +1,7 @@ /* GDB Notifications to Observers. - Copyright (C) 2003, 2004, 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010 + Free Software Foundation, Inc. This file is part of GDB. @@ -90,6 +91,7 @@ static struct observer_list * xalloc_observer_list_node (void) { struct observer_list *node = XMALLOC (struct observer_list); + node->observer = XMALLOC (struct observer); return node; } @@ -181,19 +183,19 @@ int observer_test_second_observer = 0; int observer_test_third_observer = 0; void -observer_test_first_notification_function (struct bpstats *bs) +observer_test_first_notification_function (int arg) { observer_test_first_observer++; } void -observer_test_second_notification_function (struct bpstats *bs) +observer_test_second_notification_function (int arg) { observer_test_second_observer++; } void -observer_test_third_notification_function (struct bpstats *bs) +observer_test_third_notification_function (int arg) { observer_test_third_observer++; }