Fri Oct 14 23:49:23 2016 UTC ()
multiple include protection


(christos)
diff -r1.1.1.6 -r1.2 src/external/gpl3/gdb/dist/gdb/event-loop.h

cvs diff -r1.1.1.6 -r1.2 src/external/gpl3/gdb/dist/gdb/Attic/event-loop.h (expand / switch to unified diff)

--- src/external/gpl3/gdb/dist/gdb/Attic/event-loop.h 2016/10/12 16:47:12 1.1.1.6
+++ src/external/gpl3/gdb/dist/gdb/Attic/event-loop.h 2016/10/14 23:49:23 1.2
@@ -56,27 +56,28 @@ @@ -56,27 +56,28 @@
56 last iteration of the event loop, and need to be processed. An 56 last iteration of the event loop, and need to be processed. An
57 event is represented by a procedure to be invoked in order to 57 event is represented by a procedure to be invoked in order to
58 process the event. The queue is scanned head to tail. If the 58 process the event. The queue is scanned head to tail. If the
59 event of interest is a change of state in a file descriptor, then a 59 event of interest is a change of state in a file descriptor, then a
60 call to poll or select will be made to detect it. 60 call to poll or select will be made to detect it.
61 61
62 If the events generate signals, they are also queued by special 62 If the events generate signals, they are also queued by special
63 functions that are invoked through traditional signal handlers. 63 functions that are invoked through traditional signal handlers.
64 The actions to be taken is response to such events will be executed 64 The actions to be taken is response to such events will be executed
65 when the SIGHANDLER_LIST is scanned, the next time through the 65 when the SIGHANDLER_LIST is scanned, the next time through the
66 infinite loop. 66 infinite loop.
67 67
68 Corollary tasks are the creation and deletion of event sources. */ 68 Corollary tasks are the creation and deletion of event sources. */
69 69#ifndef _EVENT_LOOP_H_
 70#define _EVENT_LOOP_H_
70typedef void *gdb_client_data; 71typedef void *gdb_client_data;
71struct async_signal_handler; 72struct async_signal_handler;
72struct async_event_handler; 73struct async_event_handler;
73typedef void (handler_func) (int, gdb_client_data); 74typedef void (handler_func) (int, gdb_client_data);
74typedef void (sig_handler_func) (gdb_client_data); 75typedef void (sig_handler_func) (gdb_client_data);
75typedef void (async_event_handler_func) (gdb_client_data); 76typedef void (async_event_handler_func) (gdb_client_data);
76typedef void (timer_handler_func) (gdb_client_data); 77typedef void (timer_handler_func) (gdb_client_data);
77 78
78/* Exported functions from event-loop.c */ 79/* Exported functions from event-loop.c */
79 80
80extern void start_event_loop (void); 81extern void start_event_loop (void);
81extern int gdb_do_one_event (void); 82extern int gdb_do_one_event (void);
82extern void delete_file_handler (int fd); 83extern void delete_file_handler (int fd);
@@ -117,13 +118,14 @@ extern struct async_event_handler * @@ -117,13 +118,14 @@ extern struct async_event_handler *
117 CREATE_ASYNC_EVENT_HANDLER from the event loop, and release it. */ 118 CREATE_ASYNC_EVENT_HANDLER from the event loop, and release it. */
118extern void 119extern void
119 delete_async_event_handler (struct async_event_handler **handler_ptr); 120 delete_async_event_handler (struct async_event_handler **handler_ptr);
120 121
121/* Call the handler from HANDLER the next time through the event 122/* Call the handler from HANDLER the next time through the event
122 loop. */ 123 loop. */
123extern void mark_async_event_handler (struct async_event_handler *handler); 124extern void mark_async_event_handler (struct async_event_handler *handler);
124 125
125/* Mark the handler (ASYNC_HANDLER_PTR) as NOT ready. */ 126/* Mark the handler (ASYNC_HANDLER_PTR) as NOT ready. */
126 127
127extern void clear_async_event_handler (struct async_event_handler *handler); 128extern void clear_async_event_handler (struct async_event_handler *handler);
128 129
129extern void initialize_async_signal_handlers (void); 130extern void initialize_async_signal_handlers (void);
 131#endif