Книга: Embedded Linux development using Eclipse
5.2.1 Running the Simulation
5.2.1 Running the Simulation
The devices program needs to be started first. We’ll run it from a shell window outside of Eclipse. In a shell window, cd
to ~/workspace/thermostat
(note that “~” is a shortcut for your home directory). Both executables, thermostat_s
and devices
, are in this directory. Enter ./devices
to start the devices program.
Back in Eclipse, right-click thermostat_s
under the thermostat project in the Project Explorer view and select Debug As?Debug Configurations… to create a new debug configuration for this project. Name it whatever you’d like and select the thermostat project. Search Project doesn’t work for finding an application in a Makefile project, so you have to browse to the project directory in your workspace and select the file, thermostat_s
. If you choose, enter a number in the Arguments tab for the program’s loop delay time in seconds. Click Apply and then Debug.
As before, Eclipse brings up the Debug perspective with the program stopped at the first executable line of main()
.
- 5.4.6 Debugging on the Target
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Appendix E. Other resources and links
- Example NAT machine in theory
- The final stage of our NAT machine
- Compiling the user-land applications
- The conntrack entries
- Untracked connections and the raw table
- Basics of the iptables command
- Other debugging tools