source: rtems/doc/rtems_gdb/example.t @ 77c15bbc

Last change on this file since 77c15bbc was 77c15bbc, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/22/03 at 07:58:01

2003-05-22 Ralf Corsepius <corsepiu@…>

  • example.t: Reflect c/src/exec having moved to cpukit.
  • Property mode set to 100644
File size: 3.1 KB
Line 
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 Debug Session Example
10
11The following is a debug session.  Note that some lines have been broken
12to aviod formatting problems in the printed document.
13
14@example
15GNU gdb 4.17
16Copyright 1998 Free Software Foundation, Inc.
17GDB is free software, covered by the GNU General Public License, and
18you are welcome to change it and/or distribute copies of it under
19certain conditions.  Type "show copying" to see the conditions.
20There is absolutely no warranty for GDB. 
21Type "show warranty" for details.
22This GDB was configured as --host=i686-pc-linux-gnu --target=i386-rtems.
23(gdb) setrpcmode sun
24(gdb) setdaemontype rdbg
25(gdb) target rtems usnet-test
26Attaching remote machine across net...
27Connected to usnet-test.
28Now the "run" command will start a remote process.
29(gdb) file /buildr4/pc386/tests/debug.exe
30Reading symbols from /buildr4/pc386/tests/debug.exe...done.
31(gdb) attach 1
32Attaching program: /buildr4/pc386/tests/debug.exe pid 1
330x22fe65 in enterRdbg ()
34(gdb) info threads
35There are 8 threads:
36Id.               Name       Detached   Suspended
37134283273         Rini       No         No <= current target thread
380x22fe65 in enterRdbg ()
39134283272         Evnt       No         No
40_Thread_Dispatch () at /rtems4/cpukit/score/src/thread.c:315
41134283271         SPE2       No         No
42_Thread_Dispatch () at /rtems4/cpukit/score/src/thread.c:315
43134283270         SPE1       No         No
44_Thread_Handler () at /rtems4/cpukit/score/src/thread.c:1107
45134283269         RDBG       No         No
460x22fe65 in enterRdbg ()
47134283268         SCrx       No         No
48_Thread_Dispatch () at /rtems4/cpukit/score/src/thread.c:315
49134283267         SCtx       No         No
50_Thread_Dispatch () at /rtems4/cpukit/score/src/thread.c:315
51134283266         ntwk       No         No
52_Thread_Dispatch () at /rtems4/cpukit/score/src/thread.c:315
53(gdb) b init.c:92
54Breakpoint 1 at 0x200180: file \
55       /rtems4/c/src/tests/samples/debug/init.c, line 92.
56(gdb) c
57Continuing.
58Thread 134283273 (Rini) has been deleted.
59[Switching to Rtems thread 134283271 (Not suspended) \
60    ( <= current target thread )]
61Breakpoint 1, example2 (argument=4) at \
62    /rtems4/c/src/tests/samples/debug/init.c:92
6392 tuto += tuti;
64(gdb) b init.c:66
65Breakpoint 2 at 0x200128: file \
66    /rtems4/c/src/tests/samples/debug/init.c, line 66.
67(gdb) c
68Continuing.
69[Switching to Rtems thread 134283270 (Not suspended) \
70    ( <= current target thread )]
71Breakpoint 2, example1 (argument=4) at \
72    /rtems4/c/src/tests/samples/debug/init.c:66
7366 toto += titi;
74(gdb) c
75Continuing.
76[Switching to Rtems thread 134283271 (Not suspended) \
77    ( <= current target thread )]
78Breakpoint 1, example2 (argument=4) at \
79    /rtems4/c/src/tests/samples/debug/init.c:92
8092 tuto += tuti;
81(gdb) s
8293 if (print_enable2)
83(gdb) detach
84Detaching program: /buildr4/pc386/tests/debug.exe pid 1
85Warning: the next command will be done localy!
86If you want to restart another remote program, reuse the target command
87(gdb) quit
88@end example
Note: See TracBrowser for help on using the repository browser.