Collaboration diagram for EventSelector:

Public Methods | |
| EventSelector (int tcpPort) | |
| void | read_char () |
| equivalent to handleInputCommand when readline is not used. | |
| void | loop () |
| wait for events and process them. | |
Static Public Methods | |
| void | handleInputCommand (char *buffer) |
| callback for readline. | |
Private Attributes | |
| CmdLine | cmd |
| keyboard or stdin input is treated by CmdLine. | |
| GdbRemote | gdbRemote |
| tcp/ip data is passed to GdbRemote for treatment. | |
| bool | withReadLine |
| int | commandResult |
| Stores the result of a command. | |
Definition at line 51 of file main.cpp.
|
|
Constructs the EventSelector and configures libreadline. Check if stdin is a terminal or not, to decide wether to use libreadline or not. Also constructs a GdbRemote object by passing it pxa250Ptr. Definition at line 99 of file main.cpp. References handleInputCommand(), and withReadLine. |
|
|
true if using libreadline. Impossible to use libreadline if stdin is not a terminal. Definition at line 63 of file main.cpp. Referenced by EventSelector(). |
1.2.15