gdb: fix build of host-gdb 7.4
PATCH 1/2 gdb: fix build of host-gdb 7.4
The build of host-gdb 7.4 fails due to some texinfo issue. To avoid that, use the same trick as is used for the target variant of gdb:
tell gdb that makeinfo is missing.
--- package/gdb/gdb.mk | 3 +++ 1 file changed, 3 insertions(+)
package/gdb/gdb.mk +3 -0
@@ -50,6 +50,9 @@ GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH endif +HOST_GDB_CONF_ENV = \ + ac_cv_prog_MAKEINFO=missing + GDB_CONF_ENV = \ ac_cv_prog_MAKEINFO=missing \ ac_cv_type_uintptr_t=yes \
Signature · 1 line
1.9.3
PATCH 2/2 gdb: switch to 7.x for Blackfin
For some reason, we were keeping gdb version 6.6a specially for Blackfin. However, it turns out that support for Blackfin was merged in gdb 7.4 (cross-gdb and gdbserver, not native gdb on the target). Therefore, we can simply remove the support for version 6.6a and use 7.5 as the default.
Both 7.4 and 7.5 were built tested, including cross-gdb and gdbserver.
The original reason to switch to 7.x is that 6.6a doesn't build for Blackfin FLAT, and while it builds for Blackfin FDPIC, it only builds libiberty.a and does not actually build a cross debugger.
Fixes:
http://autobuild.buildroot.org/results/b47/b47f85553336b7f63ee4ecdf8598374ce4a225a3/
--- package/gdb/6.6a/100-uclibc-conf.patch | 82 ------- .../gdb/6.6a/600-fix-compile-flag-mismatch.patch | 69 ------ package/gdb/6.6a/gdb-6.6-bfin-gdbserver.patch | 238 --------------------- package/gdb/Config.in.host | 7 - 4 files changed, 396 deletions(-) delete mode 100644 package/gdb/6.6a/100-uclibc-conf.patch delete mode 100644 package/gdb/6.6a/600-fix-compile-flag-mismatch.patch delete mode 100644 package/gdb/6.6a/gdb-6.6-bfin-gdbserver.patch
package/gdb/6.6a/100-uclibc-conf.patch deleted +0 -82
@@ -1,82 +0,0 @@ -diff -rNdup gdb-6.6.orig/bfd/configure gdb-6.6/bfd/configure ---- gdb-6.6.orig/bfd/configure 2006-10-25 08:49:20.000000000 +0200 -+++ gdb-6.6/bfd/configure 2007-05-14 10:35:50.000000000 +0200 -@@ -3579,6 +3579,11 @@ linux-gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - netbsd* | knetbsd*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' -diff -rNdup gdb-6.6.orig/libtool.m4 gdb-6.6/libtool.m4 ---- gdb-6.6.orig/libtool.m4 2005-12-27 17:37:57.000000000 +0100 -+++ gdb-6.6/libtool.m4 2007-05-14 10:35:50.000000000 +0200 -@@ -751,6 +751,11 @@ netbsd* | knetbsd*-gnu) - fi - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - newsos6) - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'] - lt_cv_file_magic_cmd=/usr/bin/file -diff -rNdup gdb-6.6.orig/ltconfig gdb-6.6/ltconfig ---- gdb-6.6.orig/ltconfig 2006-07-04 22:31:03.000000000 +0200 -+++ gdb-6.6/ltconfig 2007-05-14 10:35:50.000000000 +0200 -@@ -602,7 +602,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)- - - # Transform linux* to *-*-linux-gnu*, to support old configure scripts. - case $host_os in --linux-gnu*) ;; -+linux-gnu*|linux-uclibc*) ;; - linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` - esac - -@@ -1270,6 +1270,24 @@ linux-gnu*) - dynamic_linker='GNU/Linux ld.so' - ;; - -+linux-uclibc*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' -+ soname_spec='${libname}${release}.so$major' -+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=no -+ # This implies no fast_install, which is unacceptable. -+ # Some rework will be needed to allow for fast_install -+ # before this can be enabled. -+ # Note: copied from linux-gnu, and may not be appropriate. -+ hardcode_into_libs=yes -+ # Assume using the uClibc dynamic linker. -+ dynamic_linker="uClibc ld.so" -+ ;; -+ - netbsd*) - need_lib_prefix=no - need_version=no -diff -rNdup gdb-6.6.orig/opcodes/configure gdb-6.6/opcodes/configure ---- gdb-6.6.orig/opcodes/configure 2006-10-25 08:49:20.000000000 +0200 -+++ gdb-6.6/opcodes/configure 2007-05-14 10:35:50.000000000 +0200 -@@ -3590,6 +3590,11 @@ netbsd* | knetbsd*-gnu) - fi - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - newsos6) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file
package/gdb/6.6a/600-fix-compile-flag-mismatch.patch deleted +0 -69
69 lines not on this page · raw message
package/gdb/6.6a/gdb-6.6-bfin-gdbserver.patch deleted +0 -238
238 lines not on this page · raw message
package/gdb/Config.in.host +0 -7
@@ -17,27 +17,20 @@ choice prompt "GDB debugger Version" depends on !BR2_arc depends on !BR2_microblaze - default BR2_GDB_VERSION_6_6 if BR2_bfin default BR2_GDB_VERSION_6_7_1_AVR32_2_1_5 if BR2_avr32 default BR2_GDB_VERSION_7_5 help Select the version of gdb you wish to use. - config BR2_GDB_VERSION_6_6 - bool "gdb 6.6" - depends on BR2_bfin - config BR2_GDB_VERSION_6_7_1_AVR32_2_1_5 depends on BR2_avr32 bool "gdb 6.7.1-avr32-2.1.5" config BR2_GDB_VERSION_7_4 bool "gdb 7.4.x" - depends on !BR2_bfin config BR2_GDB_VERSION_7_5 bool "gdb 7.5.x" - depends on !BR2_bfin endchoice
Signature · 1 line
1.9.3
PATCH 2/2 gdb: switch to 7.x for Blackfin
Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
For some reason, we were keeping gdb version 6.6a specially for Blackfin. However, it turns out that support for Blackfin was merged in gdb 7.4 (cross-gdb and gdbserver, not native gdb on the target). Therefore, we can simply remove the support for version 6.6a and use 7.5 as the default.
Both 7.4 and 7.5 were built tested, including cross-gdb and gdbserver.
The original reason to switch to 7.x is that 6.6a doesn't build for Blackfin FLAT, and while it builds for Blackfin FDPIC, it only builds libiberty.a and does not actually build a cross debugger.
Quoted 5 lines
Fixes:
http://autobuild.buildroot.org/results/b47/b47f85553336b7f63ee4ecdf8598374ce4a225a3/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 gdb: fix build of host-gdb 7.4
In reply to Thomas PetazzoniQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
The build of host-gdb 7.4 fails due to some texinfo issue. To avoid that, use the same trick as is used for the target variant of gdb:
tell gdb that makeinfo is missing.Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard