RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


Output of a Debug Session with the Prototype

PREV UP NEXT Bookshelf RTEMS Remote Debugger Server Specifications

7.9: Output of a Debug Session with the Prototype

This is a sample session with the remote debugging prototype. Note that some lines have been broken so they would print properly when printed.

GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it
under certain conditions.  Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.
Type "show warranty" for details.
This GDB was configured as --host=i686-pc-linux-gnu --target=i386-rtems.
Attaching remote machine across net...
Connected to net-test.
Now the "run" command will start a remote process.
Setting up the environment for debugging gdb.
(gdb) attach 1
Attaching program: /build-rtems/pc386/tests/debug.exe pid 1
0x230715 in enterRdbg ()
(gdb) info threads
There are 8 threads:
Id.       Name   Detached   Suspended
134283273 Rini   No         No <= current target thread
0x230715 in enterRdbg ()
134283272 Evnt   No         No
_Thread_Dispatch () at /rtems/cpukit/score/src/thread.c:315
134283271 SPE2   No         No
_Thread_Dispatch () at /rtems/cpukit/score/src/thread.c:315
134283270 SPE1   No         No
_Thread_Handler  () at /rtems/cpukit/score/src/thread.c:1107
134283269 RDBG   No         No
0x230715 in enterRdbg ()
134283268 SCrx   No         No
_Thread_Dispatch () at /rtems/cpukit/score/src/thread.c:315
134283267 SCtx   No         No
_Thread_Dispatch () at /rtems/cpukit/score/src/thread.c:315
134283266 ntwk   No         No
_Thread_Dispatch () at /rtems/cpukit/score/src/thread.c:315
(gdb) b init.c:89
Breakpoint 1 at 0x200180: file \
    /rtems/c/src/tests/samples/debug/init.c, line 89.
(gdb) c
Continuing.
Thread 134283273 (Rini) has been deleted.
[Switching to Rtems thread 134283271 (Not suspended) \
    ( <= current target thread )]
Breakpoint 1, example2 (argument=4) at \
    /rtems/c/src/tests/samples/debug/init.c:89
89          tuto += tuti;
(gdb) s
90          if (print_enable2)
(gdb) c
Continuing.
Breakpoint 1, example2 (argument=4) at \
    /rtems/c/src/tests/samples/debug/init.c:89
89          tuto += tuti;
(gdb) b init.c:66
Breakpoint 2 at 0x200128: file \
    /rtems/c/src/tests/samples/debug/init.c, line 66.
(gdb) c
Continuing.
Switching to Rtems thread 134283270 (Not suspended) \
    ( <= current target thread )]
Breakpoint 2, example1 (argument=4) at \
    /rtems/c/src/tests/samples/debug/init.c:66
66          toto += titi;
(gdb) c
Continuing.
[Switching to Rtems thread 134283271 (Not suspended) \
    ( <= current target thread )]
Breakpoint 1, example2 (argument=4) at \
    /rtems/c/src/tests/samples/debug/init.c:89
89          tuto += tuti;
(gdb) bt
#0  example2 (argument=4)
    at /rtems/c/src/tests/samples/debug/init.c:89
#1  0xf0009bd0 in ?? ()
(gdb) thread target 134283270
thread 134283270 [SPE1], _Thread_Dispatch () at \
    /rtems/cpukit/score/src/thread.c:315
315         executing = _Thread_Executing;
(gdb) c
Continuing.
Breakpoint 2, example1 (argument=4) at \
    /rtems/c/src/tests/samples/debug/init.c:66
66          toto += titi;
(gdb) detach
Detaching program: /build-rtems/pc386/tests/debug.exe pid 1
Warning: the next command will be done localy! \
    If you want to restart another remote
program, reuse the target command
(gdb)


PREV UP NEXT Bookshelf RTEMS Remote Debugger Server Specifications

Copyright © 1988-2004 OAR Corporation