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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtcl/] [help/] [target.html] - Blame information for rev 1767

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

Line No. Rev Author Line
1 578 markom
<HTML>
2
<HEAD>
3
<TITLE>Target Selection Help</TITLE>
4
</HEAD>
5
<BODY>
6
<H1>The Target Selection Dialog</H1>
7
<H3>Overview</H3>
8
<P>The Target Selection Dialog allows users to specify the debug target,
9
the interface used to connect to the target, and some useful run
10
options.</P>
11
 
12
<P>Target Selection topics:
13
<UL>
14
    <LI><UL><A HREF="#select">Selecting a Target</A>
15
            <LI><A HREF="#select_tar">Specifying a Target</A>
16
            <LI><A HREF="#select_int">Choosing a Connection Interface</A>
17
        </UL>
18
    <LI><UL><A HREF="#options">Options</A>
19
            <LI><A HREF="#options_run_until_main">Run until 'main'</A>
20
            <LI><A HREF="#options_bp_at_exit">Set breakpoint at 'exit'</A>
21
            <LI><A HREF="#options_download_dialog">Display Download Dialog</A>
22
        </UL>
23
     <LI><UL><A HREF="#more_options">More Options</A>
24
             <LI><A HREF="#more_options_attach">Attach to Target</A>
25
             <LI><A HREF="#more_options_load">Download Program</A>
26
             <LI><A HREF="#more_options_run">Run Program</A>
27
             <LI><A HREF="#more_options_cont">Continue from Last Stop</A>
28
         </UL>
29
</UL></P>
30
 
31
<H3><A NAME="select">Selecting a Target</A></H3>
32
Selecting a target involves choosing a target for debugging and setting connection
33
interface options for the target.
34
 
35
<P>Common targets include: "Exec" for native debuggers, "Remote/Serial" for establishing
36
a connection to a target board via a serial line, "Remote/TCP" for TCP connections,
37
and "Simulator" for connections to the simulator. There may be more depending on the
38
configuration of the debugger being used.</P>
39
 
40
<P>In general, "remote" targets are always serial connections which require the user
41
to specify the serial port and baud rate to be used for the connection and
42
"remote/tcp" targets are always TCP connections which require specifying the hostname
43
and port number of the machine to which to connect. Depending upon configuration,
44
there may be numerous serial- and TCP-based connections. These always follow the
45
naming convention <I>target</I>/Serial and <I>target</I>/TCP.</P>
46
 
47
<P>To <A NAME="select_tar"> select a target</A>, choose one of the available targets
48
from the dropdown menu in the Connection Frame. Then <A NAME="#select_int">specify
49
the interface options</A> for this target: selecting the baudrate and serial port
50
from the dropdown menus (serial targets only) or entering the hostname and port number
51
(TCP targets only).</P>
52
 
53
<H3><A NAME="options">Options</A></H3>
54
Three run options which may be selected include:
55
<DL>
56
    <DT><A NAME="options_run_until_main">Run until 'main'
57
        <DD>Sets a breakpoint at main()
58
    <DT><A NAME="options_bp_at_exit">Set breakpoint at 'exit'
59
        <DD>Sets a breakpoint at exit()
60
    <DT><A NAME="options_download_dialog">Display Download Dialog
61
        <DD>Displays a dialog showing the progress of the download to
62
            the target section by section
63
</DL>
64
<BR>
65
<H3><A NAME="more_options">More Options</A></H3>
66
Several additional run options may be set for each target from the Target Selection
67
Dialog. These options govern the behavior of the debugger's
68
<A NAME="source.html#run_button">Run Button</A>. The debugger automatically selects
69
default values for these options whenever a target is selected with the dropdown menu
70
in the Connection Frame. To modify this default bahavior, click the small triangle
71
next to "More Options" at the bottom of the dialog. The Run Options for the current
72
target are displayed, allowing modification of the actions for the target. When the
73
"OK" button is selected, these settings are saved and will be used as the default
74
for the target in future sessions.
75
 
76
<DL>
77
    <DT><A NAME="more_options_attach">Attach to Target</A>
78
        <DD>Establish a connection to the target board.
79
    <DT><A NAME="more_options_load">Download Program</A>
80
        <DD>Download the program to the target board.
81
    <DT><A NAME="more_options_run">Run Program</A>
82
        <DD>Run the program on the target board, creating a new
83
            "process". This option may not be specified along with
84
            the continue option. See note below.
85
    <DT><A NAME="more_options_cont">Continue from Last Stop</A>
86
        <DD>Continue the program on the target board from where
87
            it last stopped. This option may not be specified
88
            along with the "run" option. See note below.
89
</DL>
90
 
91
<P>Note that all remote targets typically do not "run" programs. Since target
92
boards are usually incapable of creating a new "process", these targets
93
seldom "Run". The defaults for all remote targets reflect this distinction: they
94
are all set to "Continue".</P>
95
 
96
<P>Only one of the options "Run Program" and "Continue from Last Stop" may be used.
97
Typically, the default behavior of this setting should not be altered.</P>
98
</BODY>
99
</HTML>

powered by: WebSVN 2.1.0

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