xviii List of Figures
C.10 To solve the build problem, we add another source file called addsub.c and
inthislewedenethetwofunctions. .................... 456
C.11 When you build the project, Eclipse should say that the project is built
successfully. A valid Makefile is automatically generated by Eclipse. . . . . 457
C.12 Running: Click Run in the menubar and then select Run. . . . . . . . . . 457
C.13 The program’s output is shown in the Console. . . . . . . . . . . . . . . . 458
C.14 Eclipse uses gdb to debug programs, and also provides a convenient user
interface. To debug a program, click Run and select Debug. . . . . . . . . 458
C.15 Eclipse starts the program and stops at the first statement in main.Thisis
denotedbythearrowthatisshownatline13................. 459
C.16 Eclipse knows how to communicate with gdb, and provides a convenient
method for common debugging commands such as step over, step into, and
toggle breakpoint. Move the mouse cursor to line 18 in the source code, and
toggle line breakpoint. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
C.17 Click Window, Show View, and Variables. Here you can see the values of
variables as the code executes. Note that the value of c is96. ....... 460
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset