# HG changeset patch # User Zhenqiang Chen # Date 1322025327 -28800 # Node ID 258160822e359fba710ca4fcc7e65c401db57bdc # Parent 2f4e3c312b659422e4a9950f13a0fc507b97c1fd debug/gdb: add extra config for gdb cross. Signed-off-by: Zhenqiang Chen [yann.morin.1998@anciens.enib.fr: prompt rewording, as suggested by M. Hope] Signed-off-by: "Yann E. MORIN" diff -r 2f4e3c312b65 -r 258160822e35 config/debug/gdb.in.cross --- a/config/debug/gdb.in.cross Tue Nov 22 14:18:14 2011 +0800 +++ b/config/debug/gdb.in.cross Wed Nov 23 13:15:27 2011 +0800 @@ -38,5 +38,12 @@ Building a static gdb can help in this regard, although there 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 "Cross-gdb extra config" + default "" + help + Extra flags to pass onto ./configure when configuring the gdb cross. + endif # GDB_CROSS diff -r 2f4e3c312b65 -r 258160822e35 scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Tue Nov 22 14:18:14 2011 +0800 +++ b/scripts/build/debug/300-gdb.sh Wed Nov 23 13:15:27 2011 +0800 @@ -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}