This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot - improve CDL for building with/without GDB
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: 08 Dec 2003 08:38:28 -0700
- Subject: RedBoot - improve CDL for building with/without GDB
- Organization: MLB Associates
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.172
diff -u -5 -p -r1.172 ChangeLog
--- redboot/current/ChangeLog 5 Dec 2003 15:10:52 -0000 1.172
+++ redboot/current/ChangeLog 8 Dec 2003 15:37:28 -0000
@@ -1,5 +1,12 @@
+2003-12-08 Gary Thomas <gary@mlbassoc.com>
+
+ * cdl/redboot.cdl: Better handling of GDB stubs support. This
+ should be automatically included if the platform supports GDB.
+ Disabling CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS (in the common HAL)
+ will fully disable GDB support.
+
2003-12-05 Gary Thomas <gary@mlbassoc.com>
* src/decompress.c (gzip_init): Memory pool initialization should
only be done in _zlib_init().
Index: redboot/current/cdl/redboot.cdl
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/cdl/redboot.cdl,v
retrieving revision 1.60
diff -u -5 -p -r1.60 redboot.cdl
--- redboot/current/cdl/redboot.cdl 2 Dec 2003 14:40:19 -0000 1.60
+++ redboot/current/cdl/redboot.cdl 8 Dec 2003 15:09:43 -0000
@@ -77,25 +77,32 @@ cdl_package CYGPKG_REDBOOT {
cdl_component CYGBLD_BUILD_REDBOOT {
display "Build Redboot ROM ELF image"
default_value 0
requires CYGPKG_INFRA
requires CYGPKG_ISOINFRA
-# Someday the tools will handle this
-# requires { CYGINT_HAL_DEBUG_GDB_STUBS implies CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
-# requires { CYGINT_HAL_DEBUG_GDB_STUBS implies CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT }
-#
- requires { !CYGINT_HAL_DEBUG_GDB_STUBS || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
- requires { !CYGINT_HAL_DEBUG_GDB_STUBS || CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT }
-#
+
requires ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
requires CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
requires CYGINT_ISO_STRING_MEMFUNCS
requires CYGINT_ISO_STRING_STRFUNCS
requires CYGINT_REDBOOT_LOAD_METHOD
+
+ cdl_option CYGBLD_BUILD_REDBOOT_WITH_GDB {
+ display "Include GDB support in RedBoot"
+ no_define
+ default_value 1
+ active_if CYGINT_HAL_DEBUG_GDB_STUBS
+ requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
+ requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
+ description "
+ RedBoot normally includes support for the GDB debugging protocols.
+ This option allows this to be disabled which may yield a substantial
+ savings in terms of code and memory usage by RedBoot."
+ }
cdl_option CYGBLD_BUILD_REDBOOT_WITH_THREADS {
display "Threads debugging support"
no_define
description "