Skip to content

Commit

Permalink
Merge pull request #585 from stilor/disable-cxx-gdb
Browse files Browse the repository at this point in the history
Supply --disable-build-with-cxx instead of requiring C++
  • Loading branch information
stilor committed Feb 11, 2017
2 parents 3eed0ca + 5920157 commit e6a748c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/debug/gdb.in.gdbserver
Expand Up @@ -3,8 +3,8 @@
config GDB_GDBSERVER
bool
prompt "gdbserver"
default y
depends on ! BARE_METAL
depends on CC_LANG_CXX || !GDB_7_12_or_later
help
Build and install a gdbserver for the target, to run on the target.

Expand Down
1 change: 0 additions & 1 deletion config/debug/gdb.in.native
Expand Up @@ -5,7 +5,6 @@ config GDB_NATIVE
prompt "Native gdb"
depends on ! BARE_METAL
depends on ! BACKEND
depends on CC_LANG_CXX || !GDB_7_12_or_later
select EXPAT_TARGET
select NCURSES_TARGET
help
Expand Down
6 changes: 6 additions & 0 deletions scripts/build/debug/300-gdb.sh
Expand Up @@ -179,6 +179,9 @@ do_debug_gdb_build() {

native_extra_config=("${extra_config[@]}")

# We may not have C++ language configured for target
native_extra_config+=("--disable-build-with-cxx")

# GDB on Mingw depends on PDcurses, not ncurses
if [ "${CT_MINGW32}" != "y" ]; then
native_extra_config+=("--with-curses")
Expand Down Expand Up @@ -293,6 +296,9 @@ do_debug_gdb_build() {

gdbserver_extra_config=("${extra_config[@]}")

# We may not have C++ language configured for target
gdbserver_extra_config+=("--disable-build-with-cxx")

if [ "${CT_GDB_GDBSERVER_HAS_IPA_LIB}" = "y" ]; then
if [ "${CT_GDB_GDBSERVER_BUILD_IPA_LIB}" = "y" ]; then
gdbserver_extra_config+=( --enable-inprocess-agent )
Expand Down

0 comments on commit e6a748c

Please sign in to comment.