1 |
27 |
unneback |
# ====================================================================
|
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 Red Hat, 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 version.
|
16 |
|
|
##
|
17 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
22 |
|
|
## You should have received a copy of the GNU General Public License along
|
23 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
##
|
26 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
## or inline functions from this file, or you compile this file and link it
|
28 |
|
|
## with other works to produce a work based on this file, this file does not
|
29 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
## License. However the source code for this file must still be made available
|
31 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
##
|
33 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
## this file might be covered by the GNU General Public License.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): jskov
|
44 |
|
|
# Original data: nickg,jskov,jlarmour
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 1999-07-02
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS {
|
53 |
|
|
display "Support for GDB stubs"
|
54 |
|
|
no_define
|
55 |
|
|
description "
|
56 |
|
|
The HAL implements GDB stubs for the target."
|
57 |
|
|
}
|
58 |
|
|
|
59 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS {
|
60 |
|
|
display "Include GDB stubs in HAL"
|
61 |
|
|
active_if CYGINT_HAL_DEBUG_GDB_STUBS
|
62 |
|
|
default_value 0
|
63 |
|
|
requires ! CYGSEM_HAL_USE_ROM_MONITOR
|
64 |
|
|
requires { !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG \
|
65 |
|
|
|| CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS }
|
66 |
|
|
description "
|
67 |
|
|
This option causes a set of GDB stubs to be included into the
|
68 |
|
|
system. On some target systems the GDB support will be
|
69 |
|
|
provided by other means, for example by a ROM monitor. On
|
70 |
|
|
other targets, especially when building a ROM-booting system,
|
71 |
|
|
the necessary support has to go into the target library
|
72 |
|
|
itself. When GDB stubs are include in a configuration, HAL
|
73 |
|
|
serial drivers must also be included."
|
74 |
|
|
|
75 |
|
|
compile generic-stub.c thread-packets.c hal_stub.c drv_api.c bplist-dynamic.c
|
76 |
|
|
}
|
77 |
|
|
|
78 |
|
|
cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS_BREAK {
|
79 |
|
|
display "Support for external break support in GDB stubs"
|
80 |
|
|
no_define
|
81 |
|
|
description "
|
82 |
|
|
The HAL implements external break (or asynchronous interrupt)
|
83 |
|
|
in the GDB stubs for the target."
|
84 |
|
|
}
|
85 |
|
|
|
86 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT {
|
87 |
|
|
display "Include GDB external break support for stubs"
|
88 |
|
|
active_if CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
|
89 |
|
|
requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
90 |
|
|
default_value CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
91 |
|
|
description "
|
92 |
|
|
This option causes the GDB stub to add a serial interrupt handler
|
93 |
|
|
which will listen for GDB break packets. This lets you stop the
|
94 |
|
|
target asynchronously when using GDB, usually by hitting Control+C
|
95 |
|
|
or pressing the STOP button. This option differs from
|
96 |
|
|
CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT in that it is used when
|
97 |
|
|
GDB stubs are present."
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
cdl_interface CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED {
|
101 |
|
|
display "Platform does not support CTRLC"
|
102 |
|
|
no_define
|
103 |
|
|
}
|
104 |
|
|
|
105 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT {
|
106 |
|
|
display "Include GDB external break support when no stubs"
|
107 |
|
|
requires !CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
|
108 |
|
|
active_if { CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
|
109 |
|
|
active_if { CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 }
|
110 |
|
|
default_value { !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
|
111 |
|
|
description "
|
112 |
|
|
This option adds an interrupt handler for the GDB serial line
|
113 |
|
|
which will listen for GDB break packets. This lets you stop the
|
114 |
|
|
target asynchronously when using GDB, usually by hitting Control+C
|
115 |
|
|
or pressing the STOP button. This option differs from
|
116 |
|
|
CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT in that it is used when the GDB
|
117 |
|
|
stubs are NOT present."
|
118 |
|
|
}
|
119 |
|
|
|
120 |
|
|
cdl_option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT {
|
121 |
|
|
display "Include GDB multi-threading debug support"
|
122 |
|
|
active_if { CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT }
|
123 |
|
|
default_value 1
|
124 |
|
|
description "
|
125 |
|
|
This option enables some extra HAL code which is needed
|
126 |
|
|
to support multi-threaded source level debugging."
|
127 |
|
|
|
128 |
|
|
compile dbg-threads-syscall.c
|
129 |
|
|
}
|
130 |
|
|
|
131 |
|
|
cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES {
|
132 |
|
|
display "Number of times to retry sending a \$O packet"
|
133 |
|
|
default_value 0
|
134 |
|
|
flavor data
|
135 |
|
|
description "
|
136 |
|
|
This option controls the number of attempts that eCos programs
|
137 |
|
|
will make to send a \$O packet to a host GDB process. If it is
|
138 |
|
|
set non-zero, then the target process will attempt to resend the
|
139 |
|
|
\$O packet data up to this number of retries. Caution: use of
|
140 |
|
|
this option is not recommended as it can thoroughly confuse the
|
141 |
|
|
host GDB process."
|
142 |
|
|
}
|
143 |
|
|
|
144 |
|
|
cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_TIMEOUT {
|
145 |
|
|
display "Timeout period for GDB packets"
|
146 |
|
|
default_value 500
|
147 |
|
|
flavor data
|
148 |
|
|
description "
|
149 |
|
|
This option controls the time (in milliseconds) that eCos programs
|
150 |
|
|
will wait for a response when sending packets to a host GDB process.
|
151 |
|
|
If this time elapses, then the packet will be resent, up to some
|
152 |
|
|
maximum number of times (CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES)."
|
153 |
|
|
}
|