1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# debugging.cdl
|
4 |
|
|
#
|
5 |
|
|
# HAL debugging configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2011 Free Software Foundation, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
20 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
21 |
|
|
## for more details.
|
22 |
|
|
##
|
23 |
|
|
## You should have received a copy of the GNU General Public License
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): jskov
|
43 |
|
|
# Original data: nickg,jskov,jlarmour
|
44 |
|
|
# Contributors: jld
|
45 |
|
|
# Date: 1999-07-02
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS {
|
52 |
|
|
display "Support for GDB stubs"
|
53 |
|
|
no_define
|
54 |
|
|
description "
|
55 |
|
|
The HAL implements GDB stubs for the target."
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS {
|
59 |
|
|
display "Include GDB stubs in HAL"
|
60 |
|
|
active_if CYGINT_HAL_DEBUG_GDB_STUBS
|
61 |
|
|
default_value 0
|
62 |
|
|
requires ! CYGSEM_HAL_USE_ROM_MONITOR
|
63 |
|
|
requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
|
64 |
|
|
requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
|
65 |
|
|
requires { !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG \
|
66 |
|
|
|| CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS }
|
67 |
|
|
description "
|
68 |
|
|
This option causes a set of GDB stubs to be included into the
|
69 |
|
|
system. On some target systems the GDB support will be
|
70 |
|
|
provided by other means, for example by a ROM monitor. On
|
71 |
|
|
other targets, especially when building a ROM-booting system,
|
72 |
|
|
the necessary support has to go into the target library
|
73 |
|
|
itself. When GDB stubs are include in a configuration, HAL
|
74 |
|
|
serial drivers must also be included."
|
75 |
|
|
|
76 |
|
|
compile generic-stub.c thread-packets.c hal_stub.c drv_api.c bplist-dynamic.c
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS_BREAK {
|
80 |
|
|
display "Support for external break support in GDB stubs"
|
81 |
|
|
no_define
|
82 |
|
|
description "
|
83 |
|
|
The HAL implements external break (or asynchronous interrupt)
|
84 |
|
|
in the GDB stubs for the target."
|
85 |
|
|
}
|
86 |
|
|
|
87 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT {
|
88 |
|
|
display "Include GDB external break support for stubs"
|
89 |
|
|
active_if CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
|
90 |
|
|
requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
91 |
|
|
default_value CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
92 |
|
|
implements CYGINT_HAL_COMMON_SAVED_INTERRUPT_STATE_REQUIRED
|
93 |
|
|
description "
|
94 |
|
|
This option causes the GDB stub to add a serial interrupt handler
|
95 |
|
|
which will listen for GDB break packets. This lets you stop the
|
96 |
|
|
target asynchronously when using GDB, usually by hitting Control+C
|
97 |
|
|
or pressing the STOP button. This option differs from
|
98 |
|
|
CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT in that it is used when
|
99 |
|
|
GDB stubs are present."
|
100 |
|
|
}
|
101 |
|
|
|
102 |
|
|
cdl_interface CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED {
|
103 |
|
|
display "Platform does not support CTRLC"
|
104 |
|
|
no_define
|
105 |
|
|
}
|
106 |
|
|
|
107 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT {
|
108 |
|
|
display "Include GDB external break support when no stubs"
|
109 |
|
|
requires !CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
|
110 |
|
|
active_if { CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
|
111 |
|
|
active_if { CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 }
|
112 |
|
|
default_value { !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
|
113 |
|
|
implements CYGINT_HAL_COMMON_SAVED_INTERRUPT_STATE_REQUIRED
|
114 |
|
|
description "
|
115 |
|
|
This option adds an interrupt handler for the GDB serial line
|
116 |
|
|
which will listen for GDB break packets. This lets you stop the
|
117 |
|
|
target asynchronously when using GDB, usually by hitting Control+C
|
118 |
|
|
or pressing the STOP button. This option differs from
|
119 |
|
|
CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT in that it is used when the GDB
|
120 |
|
|
stubs are NOT present."
|
121 |
|
|
}
|
122 |
|
|
|
123 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT {
|
124 |
|
|
display "Include GDB multi-threading debug support"
|
125 |
|
|
active_if { CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT }
|
126 |
|
|
default_value 1
|
127 |
|
|
description "
|
128 |
|
|
This option enables some extra HAL code which is needed
|
129 |
|
|
to support multi-threaded source level debugging."
|
130 |
|
|
|
131 |
|
|
compile dbg-threads-syscall.c
|
132 |
|
|
}
|
133 |
|
|
|
134 |
|
|
cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES {
|
135 |
|
|
display "Number of times to retry sending a \$O packet"
|
136 |
|
|
default_value 0
|
137 |
|
|
flavor data
|
138 |
|
|
description "
|
139 |
|
|
This option controls the number of attempts that eCos programs
|
140 |
|
|
will make to send a \$O packet to a host GDB process. If it is
|
141 |
|
|
set non-zero, then the target process will attempt to resend the
|
142 |
|
|
\$O packet data up to this number of retries. Caution: use of
|
143 |
|
|
this option is not recommended as it can thoroughly confuse the
|
144 |
|
|
host GDB process."
|
145 |
|
|
}
|
146 |
|
|
|
147 |
|
|
cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_TIMEOUT {
|
148 |
|
|
display "Timeout period for GDB packets"
|
149 |
|
|
default_value 500
|
150 |
|
|
flavor data
|
151 |
|
|
description "
|
152 |
|
|
This option controls the time (in milliseconds) that eCos programs
|
153 |
|
|
will wait for a response when sending packets to a host GDB process.
|
154 |
|
|
If this time elapses, then the packet will be resent, up to some
|
155 |
|
|
maximum number of times (CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES)."
|
156 |
|
|
}
|
157 |
|
|
|
158 |
|
|
cdl_option CYGDBG_HAL_CRCTABLE_LOCATION {
|
159 |
|
|
display "Location of CRC32 table"
|
160 |
|
|
flavor data
|
161 |
|
|
legal_values {"ROM" "RAM"}
|
162 |
|
|
default_value {"RAM"}
|
163 |
|
|
description "
|
164 |
|
|
The stubs use a 1 kilobyte CRC table that can either be pregenerated
|
165 |
|
|
and placed in ROM, or generated at runtime in RAM. Depending on
|
166 |
|
|
your memory constraints, one of these options may be better."
|
167 |
|
|
}
|
168 |
|
|
|
169 |
|
|
# EOF debugging.cdl
|