Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE Instrukcja Użytkownika Strona 19

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 24
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 18
Chapter 3. Developing with Red Hat Enterprise Linux Developer Tools 15
The following output displays:
12 int
13 main (void)
14 {
15 int b;
16
17 a = 3;
18 b = 4;
19
20 printf ("Hello, world!\n");
21
22 foo (b);
23
24 return 0;
25 }
7. To list a specific function code, use the list command with the name of the function to be
display. For example, type:
list foo
The following output displays:
1 #include <stdio.h>
2
3 int a, c;
4
5 static void
6 foo (int b)
7 {
8 c = a + b;
9 printf ("%d + %d = %d\n", a, b, c);
10 }
8. To set a breakpoint at line seven, enter the following input (set a breakpoint at any line by
entering break linenumber, where linenumber is the specific line number to break):
break 8
The following output displays:
Breakpoint 2 at 0xf4: file hello.c, line 8.
9. To resume normal execution of the program until the next breakpoint, type:
continue
The following output displays:
Continuing.
Hello, world!
Breakpoint 2, foo (b=4) at hello.c:8
8 c = a + b;
10. To step to the next instruction and execute it, type:
step
The following output displays:
9 printf ("%d + %d = %d\n", a, b, c);
11. To display the value of c, type:
print c
The following output displays:
$3 = 7
12. To see how you got to where you are, type:
backtrace
The following output displays:
#0 foo (b=4) at hello.c:9
Przeglądanie stron 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24

Komentarze do niniejszej Instrukcji

Brak uwag

Approx Tablettes manuels d'utilisation

La liste de Approx Tablettes produits contient 14 manuels d'utilisation pour les modèles 14. Tous les guides d'utilisation en format pdf peuvent être téléchargés ou consultés en ligne.

Cliquez sur un alphabet ci-dessous pour faire défiler la liste complète des modèles commençant par cette lettre

Modèles Type de document
appTB101S
Fiche technique   Approx Cheesecake Tab XM 16GB 3G Black, 2 pages
APPTB102S
Fiche technique   Approx Cheesecake Tab XL 2 16GB 3G Black, 2 pages
APPTB103S
Fiche technique   Approx Cheesecake XL QUAD 8GB Black, Silver, 2 pages
APPTB103V2
Fiche technique   Approx Cheesecake XL QUAD 8GB Black, Silver, 2 pages
APPTB104B
Fiche technique   Approx Cheesecake 10.1'' XL 8GB 3G Black, 2 pages
APPTB105B
Fiche technique   Approx Cheesecake XL 2 8GB Black, 2 pages
APPTB106B
Fiche technique   Approx Cheesecake XL QUAD 8GB Black, 2 pages
APPTB700B
Fiche technique   Approx Cheesecake LITE 8GB 3G Black, 2 pages
APPTB702
Fiche technique   Approx Cheesecake Lite + 4GB 3G Black, 2 pages
APPTB800S
Fiche technique   Approx Cheesecake Tab XM 8GB 3G Black, 2 pages
Cheesecake Tab 7.0
Guide d'installation        Approx Cheesecake Tab 7.0 8GB Black, 30 pages
KIDS
Guide d'installation    Approx Cheesecake KIDS 8GB Black, Red, 54 pages
Lite 3
Guide d'installation       Approx Cheesecake Lite 3 4GB Black, 72 pages
Tab 7.0 V2
Guide d'installation       Approx Cheesecake Tab 7.0 V2 8GB 3G Black, 48 pages