1 |
1026 |
ivang |
@c
|
2 |
|
|
@c RTEMS Remote Debugger Server Specifications
|
3 |
|
|
@c
|
4 |
|
|
@c Written by: Eric Valette
|
5 |
|
|
@c Emmanuel Raguet
|
6 |
|
|
@c
|
7 |
|
|
@c
|
8 |
|
|
@c intro.t,v 1.2 2002/01/17 21:47:46 joel Exp
|
9 |
|
|
@c
|
10 |
|
|
|
11 |
|
|
@chapter Introduction
|
12 |
|
|
|
13 |
|
|
The TOOLS project aims to provide a complete development environment
|
14 |
|
|
for RTEMS OS. This environment must be as close as possible to the Chorus one
|
15 |
|
|
(gnu compiler, gnu linker, gnu debugger, ...), because it is currently the OS
|
16 |
|
|
which is the most used at CRF and we want to simplify the migration path from
|
17 |
|
|
the ChorusOs environment to the RTEMS environment. One important item of this
|
18 |
|
|
development environment is the remote debugger which allows the developer to
|
19 |
|
|
debug his software on a target machine from a host machine via a communication
|
20 |
|
|
link (Ethernet, serial link, ...).
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
The choice of GDB as debugger has been made with because in CRF, every
|
24 |
|
|
developer, which uses the ChorusOs development environment, debugs his software
|
25 |
|
|
using the remote debugging functionality of GDB. Providing a remote GDB debug
|
26 |
|
|
server running on RTEMS, will enable the developers to use transparently the
|
27 |
|
|
same debugger for a different RTOS. Another reason for the choice of GDB is
|
28 |
|
|
its constant evolution, and that it can be interfaced with graphic user interfaces
|
29 |
|
|
like DDD providing a very powerfull debugging environment.
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
The subject of this document is to explain how GDB works and the way
|
33 |
|
|
to implement a daemon on RTEMS that will be used as a debugger server for a
|
34 |
|
|
GDB client. We will call this daemon Rtems GDB Debug Server Daemon (RGDBSD).
|
35 |
|
|
We aim to provide this debugger running at least on 2 host systems : Linux 2.x
|
36 |
|
|
and Solaris 2.5.1 as they are the two platforms used for developing Chorus applications
|
37 |
|
|
today.
|
38 |
|
|
|
39 |
|
|
|