OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [doc/] [rtems_gdb/] [started.t] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
@c
2
@c  COPYRIGHT (c) 1988-2002.
3
@c  On-Line Applications Research Corporation (OAR).
4
@c  All rights reserved.
5
@c
6
@c  started.t,v 1.4 2002/01/17 21:47:46 joel Exp
7
@c
8
 
9
 
10
@chapter Getting Started
11
 
12
This section describes the steps which are necessary to set up a
13
debugging session with RTEMS/GDB.
14
 
15
 
16
@section Compiling The System Components
17
 
18
The components that need to be debugged have to be compiled with the -g option
19
in order the generated file to contain the required information for the debug
20
session.
21
 
22
 
23
@section Starting a debugging session
24
 
25
After having launched GDB, the user must connect to the RTEMS target with the
26
following commands:
27
 
28
@example
29
(gdb) setrpcmode sun
30
(gdb) setdaemontype rdbg
31
(gdb) target rtems target-name
32
@end example
33
 
34
Then he can use the file GDB command to specify the binary to be debugged.
35
 
36
This initialization phase can be written in a @code{``.gdbinit''}
37
file. Each time, the user will launch GDB, it will execute this initialization
38
sequence.
39
 
40
 
41
@section Attaching To The System
42
 
43
The entire target system is viewed as a single multi-threaded process,
44
the identifier of which is 1. To attach, use:
45
 
46
@example
47
(gdb) attach 1
48
@end example
49
 
50
When successfully attached, the user can control the execution of
51
the target system from the debugger.
52
 
53
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.