Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE Guia do Utilizador Página 65

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 100
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 64
Running GDB
55
The execution of a stopped program can be resumed in a number of ways. The following are the most
common.
c (continue)
The continue command simply restarts the execution of the program, which will continue to
execute until it encounters a breakpoint, runs into a specified or emergent condition (e.g. an error),
or terminates.
n (next)
Like continue, the next command also restarts execution; however, in addition to the stopping
conditions implicit in the continue command, next will also halt execution at the next sequential
line of code in the current source file.
s (step)
Like next, the step command also halts execution at each sequential line of code in the current
source file. However, if execution is currently stopped at a source line containing a function call,
GDB stops execution after entering the function call (rather than executing it).
fini (finish)
Like the aforementioned commands, the finish command resumes executions, but halts when
execution returns from a function.
Finally, two essential commands:
q (quit)
This terminates the execution.
h (help)
The help command provides access to its extensive internal documentation. The command
takes arguments: help breakpoint (or h br), for example, shows a detailed description
of the breakpoint command. Refer to the help output of each command for more detailed
information.
5.2.2. Running GDB
This section will describe a basic execution of GDB, using the following simple program:
hello.c
#include <stdio.h>
char hello[] = { "Hello, World!" };
int
main()
{
fprintf (stdout, "%s\n", hello);
return (0);
}
The following procedure illustrates the debugging process in its most basic form.
Procedure 5.1. Debugging a 'Hello World' Program
1. Compile hello.c into an executable with the debug flag set, as in:
gcc -g -o hello hello.c
Vista de página 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 99 100

Comentários a estes Manuais

Sem comentários

Samsung SH12ZBBX manuals

Owner’s manuals and user’s guides for Split-system air conditioners Samsung SH12ZBBX.
We providing 1 pdf manuals Samsung SH12ZBBX for download free by document types: User Manual






More products and manuals for Split-system air conditioners Samsung

Models Document Type
AW09PKB User Manual   Samsung AW18PKB User manual, 22 pages
AS09HM3/AFR User Manual   Samsung AS09HM3N/XFA User manual, 28 pages
AVMCH070EA4 User Manual   Samsung AVMCH070EA4 User manual, 16 pages
AR07HSSDBWKNEU User Manual   Samsung AR07HSSDBWKNEU User Manual, 31 pages
AQ18A1QE User Manual     Samsung AQT24A1QE Manual de usuario, 26 pages
AC026FBRDEH User Manual   Samsung AC026FBRDEH 2.6kW Maldives Wall split system User Manual, 19 pages
ND032MHXCA User Manual   Samsung ND032MHXCA User manual, 24 pages
AQ09VBCN User Manual   Samsung AQ09VBCN User manual, 37 pages
MIM-D00 User Manual   Samsung MIM-D00 User manual, 52 pages
AS09MSBX User Manual   Samsung AS12MWBBN User manual, 28 pages
SH07APGA User Manual    Samsung SH07APGA User manual, 26 pages
AR09JPFTBWQNPF User Manual   Samsung AR09JPFTBWQNPF manual de utilizador, 49 pages
AF24FSSDAWKN User Manual   Samsung AF24FSSDAWKN Kasutusjuhend, 38 pages
AQ32WCN User Manual   Samsung AQ32WCN User manual, 28 pages
AM017HN1DEH/EU User Manual   Samsung AM017HN1DEH 1.7kW 1way Cassette User Manual, 60 pages
AR12JVFSBWKXME User Manual   Samsung AR12JVFSBWKXME User Manual, 60 pages
AS12HPCN User Manual    Samsung AS12HPCN User manual, 28 pages
APH503QG User Manual   Samsung APH503QG User manual, 24 pages
MH052FXEA2 User Manual    Samsung MH052FXEA2 User manual, 28 pages
AR09FSFTKWQN User Manual   Samsung AR09FSFTKWQN User manual, 47 pages