| OLD | NEW |
| 1 /* GDB Notifications to Observers. | 1 /* GDB Notifications to Observers. |
| 2 | 2 |
| 3 Copyright (C) 2003-2004, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2003-2004, 2007-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 testsuite. DO NOT USE IT within observer.c (or anywhere else for | 174 testsuite. DO NOT USE IT within observer.c (or anywhere else for |
| 175 that matter)! */ | 175 that matter)! */ |
| 176 | 176 |
| 177 /* If we define these variables and functions as `static', the | 177 /* If we define these variables and functions as `static', the |
| 178 compiler will optimize them out. */ | 178 compiler will optimize them out. */ |
| 179 | 179 |
| 180 int observer_test_first_observer = 0; | 180 int observer_test_first_observer = 0; |
| 181 int observer_test_second_observer = 0; | 181 int observer_test_second_observer = 0; |
| 182 int observer_test_third_observer = 0; | 182 int observer_test_third_observer = 0; |
| 183 | 183 |
| 184 /* Provide prototypes to silence -Wmissing-prototypes. */ |
| 185 extern void observer_test_first_notification_function (int arg); |
| 186 extern void observer_test_second_notification_function (int arg); |
| 187 extern void observer_test_third_notification_function (int arg); |
| 188 |
| 184 void | 189 void |
| 185 observer_test_first_notification_function (int arg) | 190 observer_test_first_notification_function (int arg) |
| 186 { | 191 { |
| 187 observer_test_first_observer++; | 192 observer_test_first_observer++; |
| 188 } | 193 } |
| 189 | 194 |
| 190 void | 195 void |
| 191 observer_test_second_notification_function (int arg) | 196 observer_test_second_notification_function (int arg) |
| 192 { | 197 { |
| 193 observer_test_second_observer++; | 198 observer_test_second_observer++; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 208 &observer_debug, _("\ | 213 &observer_debug, _("\ |
| 209 Set observer debugging."), _("\ | 214 Set observer debugging."), _("\ |
| 210 Show observer debugging."), _("\ | 215 Show observer debugging."), _("\ |
| 211 When non-zero, observer debugging is enabled."), | 216 When non-zero, observer debugging is enabled."), |
| 212 NULL, | 217 NULL, |
| 213 show_observer_debug, | 218 show_observer_debug, |
| 214 &setdebuglist, &showdebuglist); | 219 &setdebuglist, &showdebuglist); |
| 215 } | 220 } |
| 216 | 221 |
| 217 #include "observer.inc" | 222 #include "observer.inc" |
| OLD | NEW |