diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-26 14:08:56 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-07 13:11:07 +0100 |
commit | 8054b1c7181b7c36e413ce15b686f99d06f4a7d2 (patch) | |
tree | f2cc84b1f4014dc7d29c0375dfe8408ec3e81b69 /cpukit | |
parent | Delete _Region_Debug_Walk() (diff) | |
download | rtems-8054b1c7181b7c36e413ce15b686f99d06f4a7d2.tar.bz2 |
Remove <rtems/debug.h>
Close #2477.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/rtems/include/rtems.h | 1 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/regionimpl.h | 1 | ||||
-rw-r--r-- | cpukit/sapi/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/sapi/include/rtems/sptables.h | 2 | ||||
-rw-r--r-- | cpukit/sapi/src/debug.c | 51 | ||||
-rw-r--r-- | cpukit/sapi/src/exinit.c | 7 | ||||
-rw-r--r-- | cpukit/score/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/score/include/rtems/debug.h | 91 | ||||
-rw-r--r-- | cpukit/score/preinstall.am | 4 |
9 files changed, 2 insertions, 159 deletions
diff --git a/cpukit/rtems/include/rtems.h b/cpukit/rtems/include/rtems.h index af05ee6176..2c27e5f719 100644 --- a/cpukit/rtems/include/rtems.h +++ b/cpukit/rtems/include/rtems.h @@ -31,7 +31,6 @@ #include <rtems/rtems/types.h> #include <rtems/config.h> -#include <rtems/debug.h> #include <rtems/init.h> #include <rtems/rtems/options.h> #include <rtems/rtems/tasks.h> diff --git a/cpukit/rtems/include/rtems/rtems/regionimpl.h b/cpukit/rtems/include/rtems/rtems/regionimpl.h index 078cf44828..9f1c3b7e51 100644 --- a/cpukit/rtems/include/rtems/rtems/regionimpl.h +++ b/cpukit/rtems/include/rtems/rtems/regionimpl.h @@ -21,7 +21,6 @@ #include <rtems/score/heapimpl.h> #include <rtems/score/objectimpl.h> #include <rtems/score/threadqimpl.h> -#include <rtems/debug.h> #ifdef __cplusplus extern "C" { diff --git a/cpukit/sapi/Makefile.am b/cpukit/sapi/Makefile.am index 76ff2fe933..ca7b421464 100644 --- a/cpukit/sapi/Makefile.am +++ b/cpukit/sapi/Makefile.am @@ -26,7 +26,7 @@ include_rtems_HEADERS += include/rtems/timespec.h EXTRA_DIST = include/rtems/README noinst_LIBRARIES = libsapi.a -libsapi_a_SOURCES = src/debug.c src/extension.c src/extensioncreate.c \ +libsapi_a_SOURCES = src/extension.c src/extensioncreate.c \ src/extensiondelete.c src/extensionident.c src/fatal.c src/exinit.c \ src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c src/iodata.c \ src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \ diff --git a/cpukit/sapi/include/rtems/sptables.h b/cpukit/sapi/include/rtems/sptables.h index dc7ea59bf7..733e613f65 100644 --- a/cpukit/sapi/include/rtems/sptables.h +++ b/cpukit/sapi/include/rtems/sptables.h @@ -24,8 +24,6 @@ extern "C" { #endif #include <rtems/config.h> - -#include <rtems/debug.h> #include <rtems/fatal.h> #include <rtems/init.h> #include <rtems/io.h> diff --git a/cpukit/sapi/src/debug.c b/cpukit/sapi/src/debug.c deleted file mode 100644 index f22f062fc9..0000000000 --- a/cpukit/sapi/src/debug.c +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @file - * - * @brief Debug Manager - * - * @ingroup ClassicDebug - */ - -/* - * Debug Manager - * - * COPYRIGHT (c) 1989-2009. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <rtems/system.h> -#include <rtems/debug.h> - -void _Debug_Manager_initialization( void ) -{ - rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); -} - -void rtems_debug_enable ( - rtems_debug_control to_be_enabled -) -{ - _Debug_Level |= to_be_enabled; -} - -void rtems_debug_disable ( - rtems_debug_control to_be_disabled -) -{ - _Debug_Level &= ~to_be_disabled; -} - -bool rtems_debug_is_enabled( - rtems_debug_control level -) -{ - return (_Debug_Level & level) ? true : false; -} diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 31158995ab..98c4079750 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -29,7 +29,6 @@ #include <rtems/system.h> #include <rtems/config.h> -#include <rtems/debug.h> #include <rtems/extensionimpl.h> #include <rtems/init.h> #include <rtems/score/sysstate.h> @@ -102,12 +101,6 @@ void rtems_initialize_data_structures(void) _Objects_MP_Handler_early_initialization(); #endif - /* - * Do this as early as possible to ensure no debugging output - * is even attempted to be printed. - */ - _Debug_Manager_initialization(); - _API_extensions_Initialization(); _Thread_Dispatch_initialization(); diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index f727e60033..fb93b98096 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -16,7 +16,7 @@ include_sys_HEADERS += include/sys/timex.h include_rtemsdir = $(includedir)/rtems -include_rtems_HEADERS = include/rtems/debug.h +include_rtems_HEADERS = include_rtems_HEADERS += include/rtems/system.h include_rtems_HEADERS += include/rtems/seterr.h diff --git a/cpukit/score/include/rtems/debug.h b/cpukit/score/include/rtems/debug.h deleted file mode 100644 index 067de4e0ed..0000000000 --- a/cpukit/score/include/rtems/debug.h +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @file rtems/debug.h - * - * @brief Information Related to the Debug Support Within RTEMS - * - * This include file contains the information pertaining to the debug - * support within RTEMS. It is currently cast in the form of a - * Manager since it is externally accessible. - */ - -/* - * COPYRIGHT (c) 1989-2009. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#ifndef _RTEMS_DEBUG_H -#define _RTEMS_DEBUG_H - -#include <rtems/score/basedefs.h> - -/** - * @defgroup ScoreDebug Debug Information - * - * @ingroup Score - */ -/**@{*/ - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * The following type is used to manage the debug mask. - */ -typedef uint32_t rtems_debug_control; - -/* - * These constants represent various classes of debugging. - */ - -/** Macro which indicates that all debugging modes are enabled */ -#define RTEMS_DEBUG_ALL_MASK 0xffffffff - -/** Macro which indicates that debugging for heaps/regions is enabled */ -#define RTEMS_DEBUG_REGION 0x00000001 - -/** - * This variable contains the current debug level. - */ -SCORE_EXTERN rtems_debug_control _Debug_Level; - -/** - * @brief Initialize debug manager. - */ -void _Debug_Manager_initialization( void ); - -/** - * @brief Enable debugging. - */ -void rtems_debug_enable( - rtems_debug_control to_be_enabled -); - -/** - * @brief Disable debugging. - */ -void rtems_debug_disable( - rtems_debug_control to_be_disabled -); - -/** - * @brief Check if debug is enabled. - * - * This routine returns TRUE if the requested debug level is - * enabled, and FALSE otherwise. - */ -bool rtems_debug_is_enabled( - rtems_debug_control level -); - -#ifdef __cplusplus -} -#endif - -/**@}*/ -#endif -/* end of include file */ diff --git a/cpukit/score/preinstall.am b/cpukit/score/preinstall.am index 062fe1b438..4b96109774 100644 --- a/cpukit/score/preinstall.am +++ b/cpukit/score/preinstall.am @@ -43,10 +43,6 @@ $(PROJECT_INCLUDE)/rtems/$(dirstamp): @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) -$(PROJECT_INCLUDE)/rtems/debug.h: include/rtems/debug.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/debug.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/debug.h - $(PROJECT_INCLUDE)/rtems/system.h: include/rtems/system.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/system.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/system.h |