diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-07-07 20:19:36 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-07-07 20:19:36 +0000 |
commit | c5aa993b1f4add48fbdc6cc3117059f616e49875 (patch) | |
tree | c809d06515a34428cc8df5f758fbc1b6117d4c30 /gdb/event-loop.c | |
parent | 3a4b77d8bee950afce6f9702aa65dc0e60817a82 (diff) | |
download | gdb-c5aa993b1f4add48fbdc6cc3117059f616e49875.zip gdb-c5aa993b1f4add48fbdc6cc3117059f616e49875.tar.gz gdb-c5aa993b1f4add48fbdc6cc3117059f616e49875.tar.bz2 |
import gdb-1999-07-07 post reformat
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r-- | gdb/event-loop.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c index 3f15da5..f47257e 100644 --- a/gdb/event-loop.c +++ b/gdb/event-loop.c @@ -16,7 +16,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #include "defs.h" #include "top.h" @@ -106,10 +107,10 @@ gdb_notifier; static struct { /* Pointer to first in handler list. */ - async_signal_handler *first_handler; - + async_signal_handler *first_handler; + /* Pointer to last in handler list. */ - async_signal_handler *last_handler; + async_signal_handler *last_handler; } sighandler_list; @@ -294,7 +295,7 @@ gdb_do_one_event () /* Start up the event loop. This is the entry point to the event loop from the command loop. */ -void +void start_event_loop () { /* Loop until there is something to do. This is the entry point to @@ -308,13 +309,13 @@ start_event_loop () to listen to. So we exit GDB. */ return; } - + /* Wrapper function for create_file_handler, so that the caller doesn't have to know implementation details about the use of poll vs. select. */ -void +void add_file_handler (fd, proc, client_data) int fd; file_handler_func *proc; @@ -378,10 +379,10 @@ create_file_handler (fd, mask, proc, client_data) if (gdb_notifier.poll_fds) gdb_notifier.poll_fds = (struct pollfd *) realloc (gdb_notifier.poll_fds, - (gdb_notifier.num_fds) * sizeof (struct pollfd)); + (gdb_notifier.num_fds) * sizeof (struct pollfd)); else - gdb_notifier.poll_fds = - (struct pollfd *) xmalloc (sizeof (struct pollfd)); + gdb_notifier.poll_fds = + (struct pollfd *) xmalloc (sizeof (struct pollfd)); (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->fd = fd; (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->events = mask; (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->revents = 0; @@ -733,7 +734,7 @@ invoke_async_signal_handler () while (1) { - for (async_handler_ptr = sighandler_list.first_handler; + for (async_handler_ptr = sighandler_list.first_handler; async_handler_ptr != NULL; async_handler_ptr = async_handler_ptr->next_handler) { |