⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.cdl

📁 eCos1.31版
💻 CDL
字号:
# ====================================================================##      debug.cdl##      Infrastructure debugging configuration data## ====================================================================#####COPYRIGHTBEGIN#####                                                                          # -------------------------------------------                              # The contents of this file are subject to the Red Hat eCos Public License # Version 1.1 (the "License"); you may not use this file except in         # compliance with the License.  You may obtain a copy of the License at    # http://www.redhat.com/                                                   #                                                                          # Software distributed under the License is distributed on an "AS IS"      # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the # License for the specific language governing rights and limitations under # the License.                                                             #                                                                          # The Original Code is eCos - Embedded Configurable Operating System,      # released September 30, 1998.                                             #                                                                          # The Initial Developer of the Original Code is Red Hat.                   # Portions created by Red Hat are                                          # Copyright (C) 1998, 1999, 2000 Red Hat, Inc.                             # All Rights Reserved.                                                     # -------------------------------------------                              #                                                                          #####COPYRIGHTEND##### ====================================================================######DESCRIPTIONBEGIN###### Author(s):      jskov# Original data:  bartv,hmt# Contributors:# Date:           1999-07-02######DESCRIPTIONEND###### ====================================================================# If global debugging is enabled then by default all assertions# are enabled. Tracing is not enabled by default because it# involves excessive overheads, for example on some targets# it requires sending a string down a serial line for every# function call. Both assertions and tracing are controlled# by the following lines.cdl_component CYGDBG_USE_ASSERTS {    display       "Use asserts"    default_value 1    description   "        If this option is defined, asserts in the code are tested.        Assert functions (CYG_ASSERT()) are defined in        'include/cyg/infra/cyg_ass.h' within the 'install' tree.        If it is not defined, these result in no additional        object code and no checking of the asserted conditions."    script        assert.cdl}cdl_component CYGDBG_USE_TRACING {    display       "Use tracing"    default_value 0    description   "        If this option is defined, tracing operations        result in output or logging, depending on other options.        This may have adverse effects on performance, if the time        taken to output message overwhelms the available CPU        power or output bandwidth.        Trace functions (CYG_TRACE()) are defined in        'include/cyg/infra/cyg_trac.h' within the 'install' tree.        If it is not defined, these result in no additional        object code and no trace information."    # The eCos system uses two types of tracing mechanisms. The most common    # type traces events, for example an event could be logged whenever    # an interrupt occurs or whenever a context switch takes place. The    # second type of tracing mechanism records every function entry and    # exit. It is possible to disable this second type of tracing while    # leaving the main tracing facility enabled.    cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS {        display       "Trace function reports"        default_value 1        description   "            This option allows individual control of            function entry/exit tracing, independent of            more general tracing output.            This may be useful to remove clutter from a            trace log."    }    cdl_option CYGDBG_INFRA_DEBUG_TRACE_MESSAGE {        display       "Use trace text"        default_value 1        description   "            All trace calls within eCos contain a text message            which should give some information about the circumstances.            These text messages will end up being embedded in the            application image and hence there is a significant penalty            in terms of image size.            It is possible to suppress the use of these messages by            disabling this option.            This results in smaller code size, but there is less            human-readable information available in the trace output,            possibly only filenames and line numbers."    }}# FIXME: The below options should be mutually exclusive.cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL {    display       "Null output"#          type             radio    default_value 0    description   "        A null output module which is useful when        debugging interactively; the output routines        can be breakpointed rather than have them actually        'print' something."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE {    display          "Simple output"#          type             radio    default_value 0    description   "        An output module which produces simple output        from tracing and assertion events."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY {    display       "Fancy output"#          type             radio    default_value 0    description "        An output module which produces fancy output        from tracing and assertion events."}cdl_component CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER {    display       "Buffered tracing"#          type             radio    default_value 1    description   "        An output module which buffers output        from tracing and assertion events. The stored        messages are output when an assert fires, or        CYG_TRACE_PRINT() (defined in <cyg/infra/cyg_trac.h>)        is called.        Of course, there will only be stored messages        if tracing per se (CYGDBG_USE_TRACING)        is enabled above."    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE {        display       "Trace buffer size"        flavor        data	active_if     CYGDBG_USE_TRACING        default_value 32        legal_values  5 to 65535        description   "            The size of the trace buffer. This counts the number            of trace records stored. When the buffer fills it            either wraps, stops recording, or generates output."    }    # FIXME: The below options should be mutually exclusive.    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP {        display       "Wrap trace buffer when full"	active_if     CYGDBG_USE_TRACING        default_value 1        #          type             radio        description   "            When the trace buffer has filled with records it            starts again at the beginning. Hence only the last            CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will            be recorded."    }    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT {        display       "Halt trace buffer when full"	active_if     CYGDBG_USE_TRACING        default_value 0        #          type             radio        description   "            When the trace buffer has filled with records it            stops recording. Hence only the first            CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will            be recorded."    }    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT {        display       "Print trace buffer when full"	active_if     CYGDBG_USE_TRACING        default_value 0        #          type             radio        description   "            When the trace buffer has filled with records it            prints the contents of the buffer. The buffer is then            emptied and the system continues."    }    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT {        display       "Print trace buffer on assert fail"	active_if     CYGDBG_USE_TRACING        default_value 1        description   "            When an assertion fails the trace buffer will be             printed to the default diagnostic device."    }}cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_PSEUDOMACRO {    display       "Use function names"    default_value 1    description   "        All trace and assert calls within eCos contain a        reference to the builtin macro '__PRETTY_FUNCTION__',        which evaluates to a string containing        the name of the current function.        This is useful when reading a trace log.        It is possible to suppress the use of the function name        by disabling this option.        This results in smaller code size, but there is less        human-readable information available in the trace output,        possibly only filenames and line numbers."}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -