source: rtems/doc/rtems_gdb/example.t @ 26f9f12
Last change on this file since 26f9f12 was 6449498, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 17, 2002 at 9:47:47 PM

2001-01-17 Joel Sherrill <joel@…>

  • SUPPORT, LICENSE: New files.
  • Numerous files touched as part of merging the 4.5 branch onto the mainline development trunk and ensuring that the script that cuts snapshots and releases works on the documentation.
  • Property mode set to 100644
File size: 3.1 KB
2@c  COPYRIGHT (c) 1988-2002.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
6@c  $Id$
9@chapter Debug Session Example
11The following is a debug session.  Note that some lines have been broken
12to aviod formatting problems in the printed document.
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/c/src/exec/score/src/thread.c:315
41134283271         SPE2       No         No
42_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
43134283270         SPE1       No         No
44_Thread_Handler () at /rtems4/c/src/exec/score/src/thread.c:1107
45134283269         RDBG       No         No
460x22fe65 in enterRdbg ()
47134283268         SCrx       No         No
48_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
49134283267         SCtx       No         No
50_Thread_Dispatch () at /rtems4/c/src/exec/score/src/thread.c:315
51134283266         ntwk       No         No
52_Thread_Dispatch () at /rtems4/c/src/exec/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 
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 
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 
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.