~ubuntu-branches/ubuntu/trusty/anjuta/trusty-proposed

« back to all changes in this revision

Viewing changes to manuals/anjuta-manual/gl/debug-stack.page

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-03-06 01:11:30 UTC
  • mfrom: (1.1.44)
  • Revision ID: package-import@ubuntu.com-20120306011130-yumg9s1nprogue2a
Tags: 2:3.3.91-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump minimum glade to 3.11 and vala to 0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="debug-stack" xml:lang="gl">
 
3
 
 
4
  <info xmlns:facet="http://projectmallard.org/facet/1.0/">
 
5
    <facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
 
6
    <link type="guide" xref="debug-data" group="fourth"/>
 
7
    <revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
 
8
    <desc>Examinar a rima.</desc>
 
9
    <credit type="author">
 
10
      <name>Sébastien Granjoux</name>
 
11
      <email>seb.sfo@free.fr</email>
 
12
    </credit>
 
13
    <credit type="editor">
 
14
      <name>Philip Chimento</name>
 
15
      <email>philip.chimento@gmail.com</email>
 
16
    </credit>
 
17
  </info>
 
18
 
 
19
  <title>Rima</title>
 
20
 
 
21
  <section>
 
22
    <title>Listar os marcos da rima</title>
 
23
 
 
24
    <p>A stack frame is the area of the stack associated to each function call.
 
25
    It lists all functions and their arguments in the sequence they were called.
 
26
    Each stack frame is numbered starting from 0 for the current function.
 
27
    You can only view the stack frames while the debugger is running.</p>
 
28
 
 
29
    <p>Moreover, a program can be composed of several threads. Each thread is
 
30
    executed independently and has its own registers, stack and local
 
31
    variables, but shares all global variables.</p>
 
32
 
 
33
    <steps>
 
34
      <item>
 
35
        <p>From the <gui>main menu</gui>, select <guiseq><gui>View</gui>
 
36
        <gui>Stack</gui></guiseq> to open the <gui>Stack</gui>
 
37
        window.</p>
 
38
      </item>
 
39
    </steps>
 
40
 
 
41
    <p>The stacks are displayed in a tree view having their corresponding
 
42
    thread as parent and displaying the following information:</p>      
 
43
 
 
44
    <terms>
 
45
      <item>
 
46
        <title>Activo</title>
 
47
        <p>This contains a yellow arrow to represent the active stack frame. By
 
48
        default it is frame 0, the current function. All evaluations and
 
49
        local variables are relative to this active frame. You can change
 
50
        the active stack frame to examine local variables in other functions.</p>
 
51
      </item>
 
52
      <item>
 
53
        <title>Fío</title>
 
54
        <p>This is a number corresponding to each thread.</p>
 
55
      </item>
 
56
      <item>
 
57
        <title>Marco</title>
 
58
        <p>This is the frame number starting from 0 for the current function.
 
59
        The first function of your program, for example <code>main()</code> in a C program,
 
60
        has the highest number.</p>
 
61
      </item>
 
62
      <item>
 
63
        <title>Ficheiro</title>
 
64
        <p>The name of the file containing the function corresponding to
 
65
        this frame.</p>
 
66
      </item>
 
67
      <item>
 
68
        <title>Liña</title>
 
69
        <p>The line number of the function corresponding to this frame.</p>
 
70
      </item>
 
71
      <item>
 
72
        <title>Función</title>
 
73
        <p>The name of the function corresponding to this frame.</p>
 
74
      </item>
 
75
      <item>
 
76
        <title>Enderezo</title>
 
77
        <p>The address of the function corresponding to this frame.</p>
 
78
      </item>
 
79
      <item>
 
80
        <title>Argumentos</title>
 
81
        <p>Os argumentos da función.</p>
 
82
      </item>
 
83
    </terms>
 
84
 
 
85
  </section>
 
86
 
 
87
 
 
88
  <section>
 
89
    <title>Change the current stack frame or thread</title>
 
90
 
 
91
    <steps>
 
92
      <item>
 
93
        <p>In the <gui>Stack</gui> window, select the frame you want.</p>
 
94
      </item>
 
95
      <item>
 
96
        <p>Right-click and select <gui>Set current frame</gui>.</p>
 
97
      </item>
 
98
    </steps>
 
99
 
 
100
    <p>Clicking on a stack frame in the same thread changes only the
 
101
    stack frame, allowing to see other local variables. But doing it
 
102
    in another thread will change both the stack frame
 
103
    and the thread. The register values will be different and the
 
104
    debugger will restart in the selected thread.</p>
 
105
  </section>
 
106
 
 
107
 
 
108
  <section>
 
109
    <title>Ver a función actual</title>
 
110
 
 
111
    <steps>
 
112
      <item>
 
113
        <p>In the <gui>Stack</gui> window, select the frame you want.</p>
 
114
      </item>
 
115
      <item>
 
116
        <p>Double-click, or right-click and select <gui>View Source</gui>.</p>
 
117
      </item>
 
118
    </steps>
 
119
  </section>
 
120
 
 
121
 
 
122
  <section>
 
123
    <title>Obter un seguimento da rima</title>
 
124
 
 
125
    <steps>
 
126
      <item>
 
127
        <p>In the <gui>Stack</gui> window, right-click and select
 
128
        <gui>Get stack trace</gui>.</p>
 
129
      </item>
 
130
    </steps>
 
131
  </section>
 
132
 
 
133
 
 
134
</page>