Skip to content

Commit

Permalink
Move gdb_notifier comment
Browse files Browse the repository at this point in the history
This moves the gdb_notifier comment a bit lower in event-loop.c, to
where it belongs; and removes an obsolete comment that Pedro pointed
out.

gdbsupport/ChangeLog
2020-04-13  Tom Tromey  <[email protected]>

	* event-loop.c: Move comment.  Remove obsolete 	comment.
  • Loading branch information
tromey committed Apr 13, 2020
1 parent 55d7aec commit 7990abc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 4 additions & 0 deletions gdbsupport/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2020-04-13 Tom Tromey <[email protected]>

* event-loop.c: Move comment. Remove obsolete comment.

2020-04-13 Tom Tromey <[email protected]>

* event-loop.h: Move from ../gdb/.
Expand Down
19 changes: 8 additions & 11 deletions gdbsupport/event-loop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,6 @@ typedef struct file_handler
}
file_handler;

/* Gdb_notifier is just a list of file descriptors gdb is interested in.
These are the input file descriptor, and the target file
descriptor. We have two flavors of the notifier, one for platforms
that have the POLL function, the other for those that don't, and
only support SELECT. Each of the elements in the gdb_notifier list is
basically a description of what kind of events gdb is interested
in, for each fd. */

/* As of 1999-04-30 only the input file descriptor is registered with the
event loop. */

/* Do we use poll or select ? */
#ifdef HAVE_POLL
#define USE_POLL 1
Expand All @@ -82,6 +71,14 @@ static unsigned char use_poll = USE_POLL;
#include <io.h>
#endif

/* Gdb_notifier is just a list of file descriptors gdb is interested in.
These are the input file descriptor, and the target file
descriptor. We have two flavors of the notifier, one for platforms
that have the POLL function, the other for those that don't, and
only support SELECT. Each of the elements in the gdb_notifier list is
basically a description of what kind of events gdb is interested
in, for each fd. */

static struct
{
/* Ptr to head of file handler list. */
Expand Down

0 comments on commit 7990abc

Please sign in to comment.