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">
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>
10
<name>Sébastien Granjoux</name>
11
<email>seb.sfo@free.fr</email>
13
<credit type="editor">
14
<name>Philip Chimento</name>
15
<email>philip.chimento@gmail.com</email>
22
<title>Listar os marcos da rima</title>
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>
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>
35
<p>From the <gui>main menu</gui>, select <guiseq><gui>View</gui>
36
<gui>Stack</gui></guiseq> to open the <gui>Stack</gui>
41
<p>The stacks are displayed in a tree view having their corresponding
42
thread as parent and displaying the following information:</p>
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>
54
<p>This is a number corresponding to each thread.</p>
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>
63
<title>Ficheiro</title>
64
<p>The name of the file containing the function corresponding to
69
<p>The line number of the function corresponding to this frame.</p>
72
<title>Función</title>
73
<p>The name of the function corresponding to this frame.</p>
76
<title>Enderezo</title>
77
<p>The address of the function corresponding to this frame.</p>
80
<title>Argumentos</title>
81
<p>Os argumentos da función.</p>
89
<title>Change the current stack frame or thread</title>
93
<p>In the <gui>Stack</gui> window, select the frame you want.</p>
96
<p>Right-click and select <gui>Set current frame</gui>.</p>
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>
109
<title>Ver a función actual</title>
113
<p>In the <gui>Stack</gui> window, select the frame you want.</p>
116
<p>Double-click, or right-click and select <gui>View Source</gui>.</p>
123
<title>Obter un seguimento da rima</title>
127
<p>In the <gui>Stack</gui> window, right-click and select
128
<gui>Get stack trace</gui>.</p>