source: rtems/doc/rtems_gdb/example.t @ 387f41a

4.104.114.84.95
Last change on this file since 387f41a was 387f41a, checked in by Joel Sherrill <joel.sherrill@…>, on 02/10/99 at 18:33:15

Base version.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-1998.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
5@c
6@c  $Id$
7@c
8
9@section Debug Session Example
10
11@example
12GNU gdb 4.17
13Copyright 1998 Free Software Foundation, Inc.
14GDB is free software, covered by the GNU General Public License, and you are
15welcome to change it and/or distribute copies of it under certain conditions.
16Type "show copying" to see the conditions.
17There is absolutely no warranty for GDB.  Type "show warranty" for details.
18This GDB was configured as --host=i686-pc-linux-gnu --target=i386RTEMS".
19(gdb) setrpcmode sun
20(gdb) setdaemontype rdbg
21(gdb) target rtems usnet-test
22Attaching remote machine across net...
23Connected to usnet-test.
24Now the "run" command will start a remote process.
25(gdb) file /buildr4/pc386/tests/debug.exe
26Reading symbols from /buildr4/pc386/tests/debug.exe...done.
27(gdb) attach 1
28Attaching program: /buildr4/pc386/tests/debug.exe pid 1
290x22fe65 in enterRdbg ()
30(gdb) info threads
31There are 8 threads:
32Id.               Name       Detached   Suspended
33134283273         Rini       No         No <= current target thread
340x22fe65 in enterRdbg ()
35134283272         Evnt       No         No
36_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
37134283271         SPE2       No         No
38_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
39134283270         SPE1       No         No
40_Thread_Handler () at /rtems4/c/src/exec/score/src/thread.c:1107
41134283269         RDBG       No         No
420x22fe65 in enterRdbg ()
43134283268         SCrx       No         No
44_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
45134283267         SCtx       No         No
46_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
47134283266         ntwk       No         No
48_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
49(gdb) b init.c:92
50Breakpoint 1 at 0x200180: file /rtems4/c/src/tests/samples/debug/init.c, line 92.
51(gdb) c
52Continuing.
53Thread 134283273 (Rini) has been deleted.
54[Switching to Rtems thread 134283271 (Not suspended) ( <= current target thread )]
55Breakpoint 1, example2 (argument=4) at /rtems4/c/src/tests/samples/debug/init.c:92
5692 tuto += tuti;
57(gdb) b init.c:66
58Breakpoint 2 at 0x200128: file /rtems4/c/src/tests/samples/debug/init.c, line 66.
59(gdb) c
60Continuing.
61[Switching to Rtems thread 134283270 (Not suspended) ( <= current target thread )]
62Breakpoint 2, example1 (argument=4) at /rtems4/c/src/tests/samples/debug/init.c:66
6366 toto += titi;
64(gdb) c
65Continuing.
66[Switching to Rtems thread 134283271 (Not suspended) ( <= current target thread )]
67Breakpoint 1, example2 (argument=4) at /rtems4/c/src/tests/samples/debug/init.c:92
6892 tuto += tuti;
69(gdb) s
7093 if (print_enable2)
71(gdb) detach
72Detaching program: /buildr4/pc386/tests/debug.exe pid 1
73Warning: the next command will be done localy!
74If you want to restart another remote program, reuse the target command
75(gdb) quit
76@end example
Note: See TracBrowser for help on using the repository browser.