1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-2002. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Commands |
---|
10 | |
---|
11 | The usual GDB commands are available to display or modify data structures and |
---|
12 | machine registers, disassemble code, display source listings, set and reset |
---|
13 | breakpoints, control the debuggee execution, etc. Refer to Debugging with GDB |
---|
14 | for a complete documentation of the standard GDB commands. |
---|
15 | |
---|
16 | GDB 4.17 has been extended with a number of commands specifically |
---|
17 | for multi-threaded debugging within a RTEMS host-target environment. These commands |
---|
18 | are described in this section. |
---|
19 | |
---|
20 | |
---|
21 | @section Host-target connection control |
---|
22 | |
---|
23 | @itemize @bullet |
---|
24 | @item (gdb) setrpcmode sun : specifies the SUN RPC type. |
---|
25 | @item (gdb) setdaemontype rdbg : specifies the RDBG debug server type. |
---|
26 | @item (gdb) target rtems target-name : specifies the target type. |
---|
27 | @end itemize |
---|
28 | |
---|
29 | @section System status information |
---|
30 | |
---|
31 | @itemize @bullet |
---|
32 | @item (gdb) info threads : gives a list of all threads in the debuggee, |
---|
33 | their names, identifiers and states. It also indicates which thread is |
---|
34 | the target thread. |
---|
35 | @end itemize |
---|
36 | |
---|
37 | |
---|
38 | @section Thread control |
---|
39 | |
---|
40 | @itemize @bullet |
---|
41 | @item (gdb) thread target [id] : allows the user to get/set the target thread. |
---|
42 | The argument id is either the thread's symbolic name or its local identifier. |
---|
43 | @item (gdb) thread detach [id...] : all stops (breakpoints) of some specified |
---|
44 | thread(s) can be ignored using the thread detach command. Each time a detached |
---|
45 | thread hits a breakpoint, RTEMS/GDB will automatically restart the debuggee |
---|
46 | without passing control to the user. |
---|
47 | @item (gdb) thread attach [id...] : (re)attach specified thread(s). |
---|
48 | @end itemize |
---|
49 | |
---|
50 | |
---|
51 | |
---|