Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: gdb/observer.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/objfiles.c ('k') | gdb/observer.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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"
OLDNEW
« no previous file with comments | « gdb/objfiles.c ('k') | gdb/observer.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698