This patch updates the toolchain gdb from 6.8 to 7.2

Signed-off-by: Steve Brown <[email protected]>

---

For some reason, gdb 6.8 isn't working on mac80211.ko, but seems fine
with other modules. I've tried the gdb build with both the mips and x86
toolchains. I ran nm on the two modules below and the output looked
reasonable. The problem, however, is resolved by gdb 7.2.

For instance:

w/ ath5k.ko
(gdb) info line ath5k_beacon_config
Line 2051 of
"/home/brown/wifi/dev/openwrt/ar71xx-svn/build_dir/linux-ar71xx_generic/compat-wireless-2011-01-24/drivers/net/wireless/ath/ath5k/base.c"
 starts at address 0x128ec <ath5k_beacon_config>
   and ends at 0x12908 <ath5k_beacon_config+28>.


w/ mac80211.ko
(gdb) info line mesh_table_hash
No line number information available for address 0x247f8

But with 7.2:

(gdb) info line mesh_table_hash
Line 141 of "include/linux/jhash.h" starts at address 0x247f8 <mesh_table_hash>
   and ends at 0x247fc <mesh_table_hash+4>.


Index: toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch
===================================================================
--- toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch   (revision 25379)
+++ toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch   (working copy)
@@ -1,31 +1,35 @@
---- a/gdb/gdbserver/configure
-+++ b/gdb/gdbserver/configure
-@@ -1239,7 +1239,7 @@
-       ac_cache_corrupted=: ;;
-     ,);;
-     *)
--      if test "x$ac_old_val" != "x$ac_new_val"; then
-+      if test "`echo x$ac_old_val`" != "`echo x$ac_new_val`"; then
-       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the 
previous run:" >&5
- echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
-       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
---- a/gdb/configure
-+++ b/gdb/configure
-@@ -272,7 +272,7 @@
- PACKAGE_BUGREPORT=
+Index: openwrt/dl/gdb-7.2/gdb/configure
+===================================================================
+--- gdb-7.2/gdb/configure
++++ gdb-7.2/gdb/configure
+@@ -988,7 +988,7 @@ CPP
+ YACC
+ YFLAGS
+ XMKMF'
+-ac_subdirs_all='doc testsuite
++ac_subdirs_all='doc
+ gdbtk
+ multi-ice
+ gdbserver'
+@@ -7880,7 +7880,7 @@ fi
  
- ac_unique_file="main.c"
--ac_subdirs_all="$ac_subdirs_all doc testsuite"
-+ac_subdirs_all="$ac_subdirs_all doc"
- # Factoring default headers for most tests.
- ac_includes_default="\
- #include <stdio.h>
-@@ -3077,7 +3077,7 @@
  
  
- 
 -subdirs="$subdirs doc testsuite"
 +subdirs="$subdirs doc"
  
  
- # Provide defaults for some variables set by the per-host and per-target
+ # Check whether to support alternative target configurations
+Index: openwrt/dl/gdb-7.2/gdb/gdbserver/configure
+===================================================================
+--- gdb-7.2/gdb/gdbserver/configure
++++ gdb-7.2/gdb/gdbserver/configure
+@@ -2151,7 +2151,7 @@ $as_echo "$as_me: error: \`$ac_var' was 
+       ac_cache_corrupted=: ;;
+     ,);;
+     *)
+-      if test "x$ac_old_val" != "x$ac_new_val"; then
++      if test "`echo x$ac_old_val`" != "`echo x$ac_new_val`"; then
+       # differences in whitespace do not lead to failure.
+       ac_old_val_w=`echo x $ac_old_val`
+       ac_new_val_w=`echo x $ac_new_val`
Index: toolchain/gdb/Makefile
===================================================================
--- toolchain/gdb/Makefile      (revision 25379)
+++ toolchain/gdb/Makefile      (working copy)
@@ -7,10 +7,10 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gdb
-PKG_VERSION:=6.8
+PKG_VERSION:=7.2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_MD5SUM:=c9da266b884fb8fa54df786dfaadbc7a
+PKG_MD5SUM:=64260e6c56979ee750a01055f16091a5
 PKG_SOURCE_URL:=@GNU/gdb
 
 include $(INCLUDE_DIR)/toolchain-build.mk

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to