diff options
author | Gabe Black <gabeblack@google.com> | 2014-12-05 22:34:42 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2014-12-05 22:34:42 -0800 |
commit | cddf988bfdb60bbf2e77aa23d98ee7ea8d12f072 (patch) | |
tree | f06c00980c0d1713dec375d084af835bb95dd20b /src/base/remote_gdb.hh | |
parent | f9f46b8fa91e1da166b1e346029f3072a40223c9 (diff) | |
download | gem5-cddf988bfdb60bbf2e77aa23d98ee7ea8d12f072.tar.xz |
misc: Rename the GDB "Event" event class to InputEvent.
The "Event" name is the same as the base event class. That's a bit confusing,
and makes it a little awkward to add other event types.
Diffstat (limited to 'src/base/remote_gdb.hh')
-rw-r--r-- | src/base/remote_gdb.hh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/base/remote_gdb.hh b/src/base/remote_gdb.hh index 110059141..373f05343 100644 --- a/src/base/remote_gdb.hh +++ b/src/base/remote_gdb.hh @@ -105,17 +105,17 @@ class BaseRemoteGDB virtual const char * gdb_command(char cmd); protected: - class Event : public PollEvent + class InputEvent : public PollEvent { protected: BaseRemoteGDB *gdb; public: - Event(BaseRemoteGDB *g, int fd, int e); + InputEvent(BaseRemoteGDB *g, int fd, int e); void process(int revent); }; - class TrapEvent : public ::Event + class TrapEvent : public Event { protected: int _type; @@ -129,8 +129,8 @@ class BaseRemoteGDB void process(); }; - friend class Event; - Event *event; + friend class InputEvent; + InputEvent *inputEvent; TrapEvent trapEvent; GDBListener *listener; int number; @@ -270,18 +270,18 @@ BaseRemoteGDB::write(Addr addr, T data) class GDBListener { protected: - class Event : public PollEvent + class InputEvent : public PollEvent { protected: GDBListener *listener; public: - Event(GDBListener *l, int fd, int e); + InputEvent(GDBListener *l, int fd, int e); void process(int revent); }; - friend class Event; - Event *event; + friend class InputEvent; + InputEvent *inputEvent; protected: ListenSocket listener; |