02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

(gdb) bt<br />

#0 0x66454 in semBTake ()<br />

#1 0x66980 in semTake ()<br />

#2 0x63a50 in tyRead ()<br />

#3 0x5b07c in iosRead ()<br />

#4 0x5a050 in read ()<br />

#5 0x997a8 in ledRead ()<br />

#6 0x4a144 in execShell ()<br />

#7 0x49fe4 in shell ()<br />

(gdb) thread 3<br />

[Switching to task 0x3aa9d8 tFtpdTask ]<br />

#0 0x66454 in semBTake ()<br />

(gdb) print/x $i0<br />

$3 = 0x3bdb50<br />

As in the display shown above, each time you switch threads the debugger<br />

exhibits the newly current thread’s VxWorks task ID and task name.<br />

Thread-Specific Breakpoints<br />

In system mode, unqualified breakpoints (set with graphical controls on the<br />

program-display window, or in the command panel with the break command and<br />

a single argument) apply globally: any thread stops when it reaches such a<br />

breakpoint. You can also set thread-specific breakpoints, so that only one thread<br />

stops there.<br />

To set a thread-specific breakpoint, append the word thread followed by a thread<br />

ID to the break command. For example:<br />

(gdb) break printf thread 2<br />

Breakpoint 1 at 0x568b8<br />

(gdb) cont<br />

Continuing.<br />

[Switching to task 0x3a4bd8 + tShell ]<br />

Breakpoint 1, 0x568b8 in printf ()<br />

(gdb) i th<br />

8 task 0x3b8ef0 tExcTask 0x9bfd0 in qJobGet ()<br />

7 task 0x3b6580 tLogTask 0x9bfd0 in qJobGet ()<br />

6 task 0x3b15b8 tNetTask 0x66454 in semBTake ()<br />

5 task 0x3ade80 tRlogind 0x66454 in semBTake ()<br />

4 task 0x3abf60 tTelnetd 0x66454 in semBTake ()<br />

3 task 0x3aa9d8 tFtpdTask 0x66454 in semBTake ()<br />

* 2 task 0x3a4bd8 + tShell 0x568b8 in printf ()<br />

1 task 0x398688 tWdbTask 0x66454 in semBTake ()<br />

(gdb) bt<br />

#0 0x568b8 in printf ()<br />

#1 0x4a108 in execShell ()<br />

#2 0x49fe4 in shell ()<br />

264

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!