Browse Source

Cleanup of GDB_INFO configuration option

1) Relocates the GDB_INFO configuration option so that it appears
in the same menu as other debugging options.

2) Revises the prompt and help text to better describe the option's
purpose and impacts.

3) Corrects an inverted depency relationship; selecting this option
now automatically enables CONTEXT_MONITOR, rather than being dependent
upon it.

Change-Id: Ib5e7e3a594e7190972fa22fd0287694ae5acd917
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
pull/255/head
Allan Stephens 10 years ago committed by Anas Nashif
parent
commit
069ff41d01
  1. 1
      make/target/kconfig/arch/arc/kernel-core.kconf
  2. 1
      make/target/kconfig/arch/arm/kernel-core.kconf
  3. 1
      make/target/kconfig/arch/x86/kernel-core.kconf
  4. 11
      make/target/kconfig/modules/debug.kconf
  5. 45
      make/target/kconfig/modules/gdb.kconf

1
make/target/kconfig/arch/arc/kernel-core.kconf

@ -71,7 +71,6 @@ source "monitor.kconf" @@ -71,7 +71,6 @@ source "monitor.kconf"
endmenu
menu "Debugging Options"
source "gdb.kconf"
source "debug.kconf"
endmenu

1
make/target/kconfig/arch/arm/kernel-core.kconf

@ -71,7 +71,6 @@ source "monitor.kconf" @@ -71,7 +71,6 @@ source "monitor.kconf"
endmenu
menu "Debugging Options"
source "gdb.kconf"
source "debug.kconf"
endmenu

1
make/target/kconfig/arch/x86/kernel-core.kconf

@ -76,7 +76,6 @@ config CPU_CLOCK_FREQ_MHZ @@ -76,7 +76,6 @@ config CPU_CLOCK_FREQ_MHZ
endmenu
menu "Debugging Options"
source "gdb.kconf"
source "debug.kconf"
endmenu

11
make/target/kconfig/modules/debug.kconf

@ -65,3 +65,14 @@ config TASK_DEBUG @@ -65,3 +65,14 @@ config TASK_DEBUG
This option allows execution of all tasks (with the exception of
essential system tasks) to be suspended so that debugging operations
can be performed.
config GDB_INFO
bool
prompt "OS-aware debugging with GDB [EXPERIMENTAL]"
default n
select CONTEXT_MONITOR
help
This option enables the kernel to support OS-aware debugging
using GDB by collecting additional information required by the
debugger. System behavior during interrupts, exceptions, and
context switches may be impacted by the collection of this data.

45
make/target/kconfig/modules/gdb.kconf

@ -1,45 +0,0 @@ @@ -1,45 +0,0 @@
# gdb.kconf - debugging configuration options
#
# Copyright (c) 2013-2014 Wind River Systems, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3) Neither the name of Wind River Systems nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
#
# GDB features
#
config GDB_INFO
bool
prompt "Task-aware debugging with GDB [EXPERIMENTAL]"
default n
depends on CONTEXT_MONITOR
help
This option enables the kernel to collect additional information
during interrupts, exceptions, and context switches. This information
is required for VxMicro task-aware debugging with GDB.
Loading…
Cancel
Save