1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta name=
"Author" content=
"Johannes Sixt">
6 <title>KDbg - User's Manual - Threads
</title>
8 <body text=
"#000000" bgcolor=
"#FFFFFF">
9 <p><a href=
"index.html">Contents
</a></p>
11 The Threads Window
</h1>
12 <p>The threads window is displayed using
<i>View|Threads
</i>. The threads
13 window lists the active threads of the program.
</p>
14 <p><b><i>Note:
</i></b> Debugging threaded programs must be supported by
15 the version of gdb that is used - it is not a feature of KDbg. For Linux
16 systems this works best with gdb5 and later. However, at the time of this writing gdb
17 still poorly supports threads on NPTL- (New Posix Threads Library) enabled
18 systems (glibc
2.3.x and kernel
2.6.x).
</p>
19 <p>The contents of the threads window are updated every time the program
20 is stopped by the debugger. (That is, the window does
<em>not
</em> reflect
21 the state while the program is running.)
</p>
22 <p>The first column shows the thread ID, the second column identifies the
23 location where the thread currently executes.
</p>
24 <p>The marker in front of the line tells which thread currently is
<em>active
</em>:
</p>
27 The
<a href=
"stack.html">stack window
</a> displays the active threads's
31 The
<a href=
"localvars.html">local variables
</a> window displays the active
32 thread's local variables.
</li>
35 The
<a href=
"watches.html">watch window
</a> uses the active thread's local
36 variables to evaluate the expressions.
</li>
38 <p>By clicking a listed thread, the active thread is switched, and the corresponding
39 windows are updated. In particular, the
<a href=
"sourcecode.html">source
40 window
</a> displays the location where the active thread is currently halted.
</p>