sourceview: Fix off-by-one line error introduced by last patch
[anjuta.git] / manuals / anjuta-manual / C / debug-thread.page
blobae0965fb377aa74f34766055e722f005c10f6da8
1 <page xmlns="http://projectmallard.org/1.0/"
2       type="topic" style="task"
3       id="debug-thread">
5   <info xmlns:facet="http://projectmallard.org/facet/1.0/">
6     <facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
7     <link type="guide" xref="debug-data" group="fifth"/>
8     <revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
9     <desc>
10       Examine threads.
11     </desc>
12     <credit type="author">
13       <name>Sébastien Granjoux</name>
14       <email>seb.sfo@free.fr</email>
15     </credit>
16     <credit type="editor">
17       <name>Philip Chimento</name>
18       <email>philip.chimento@gmail.com</email>
19     </credit>
20   </info>
22   <title>Threads</title>
24   <section>
25     <title>List threads</title>
27     <p>A program can be composed of several threads. All these threads are
28     executed independently, having their own registers, stack and local
29     variables, but sharing global variables.</p>
31     <steps>
32       <item>
33         <p>From the <gui>main menu</gui>, select <guiseq><gui>View</gui>
34         <gui>Thread</gui></guiseq> to open the <gui>Thread</gui>
35         window.</p>
36       </item>
37     </steps>
39     <p>The window shows the following information about each thread:</p>
41     <terms>
42       <item>
43         <title>Active</title>
44         <p>This contains a yellow arrow that points to the active thread.</p>
45       </item>
46       <item>
47         <title>ID</title>
48         <p>This is a number corresponding to each thread.</p>
49       </item>
50       <item>
51         <title>File</title>
52         <p>The name of the file containing the function corresponding to
53         the current frame of the current thread.</p>
54       </item>
55       <item>
56         <title>Line</title>
57         <p>The line number of the function corresponding to the current
58         frame of the current thread.</p>
59       </item>
60       <item>
61         <title>Function</title>
62         <p>The name of the function corresponding to the frame of the
63         current thread.</p>
64       </item>
65       <item>
66         <title>Address</title>
67         <p>The address of the function corresponding to the frame of the
68         current thread.</p>
69       </item>
70     </terms>
72   </section>
74   <section>
75     <title>Change current thread</title>
77     <p>The current thread is the thread whose stack and local variables are
78     currently displayed in the debugger.</p>
80     <steps>
81       <item>
82         <p>In the <gui>Thread</gui> window, select the thread you want.</p>
83       </item>
84       <item>
85         <p>Right-click and select <gui>Set current thread</gui>.</p>
86       </item>
87     </steps>
88   </section>
91   <section>
92     <title>View current function</title>
94     <steps>
95       <item>
96         <p>In the <gui>Thread</gui> window, select the thread you want.</p>
97       </item>
98       <item>
99         <p>Double-click, or right-click and select <gui>View Source</gui>.</p>
100       </item>
101     </steps>
102   </section>
105 </page>