[PATCH] debug/gdb: add extra config for gdb cross

Zhenqiang Chen zhenqiang.chen@linaro.org
Wed Nov 23 11:41:00 GMT 2011


# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1322025327 -28800
# Node ID e3a6a636cfa9013ddd0855ca9eb8d3a35dad3249
# Parent  2f4e3c312b659422e4a9950f13a0fc507b97c1fd
debug/gdb: add extra config for gdb cross.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross
--- a/config/debug/gdb.in.cross
+++ b/config/debug/gdb.in.cross
@@ -39,4 +39,11 @@
        have been reports of problems when linking gdb to the static
        libpython.a. This should be fixed in gdb >=7.3. YMMV.

+config GDB_CROSS_EXTRA_CONFIG_ARRAY
+    string
+    prompt "Extra config for gdb cross"
+    default ""
+    help
+      Extra flags to pass onto ./configure when configuring the gdb cross.
+
  endif # GDB_CROSS
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -147,7 +147,8 @@
              --with-sysroot="${CT_SYSROOT_DIR}"          \
              --with-expat=yes                            \
              --disable-werror                            \
-            "${cross_extra_config[@]}"
+            "${cross_extra_config[@]}"                  \
+            "${CT_GDB_CROSS_EXTRA_CONFIG_ARRAY[@]}"

          CT_DoLog EXTRA "Building cross-gdb"
          CT_DoExecLog ALL make ${JOBSFLAGS}

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list