The line number is correct, but the start/end addresses ignore the file address.
$ ./staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.31/bin/mips-openwrt-linux-gdb GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-redhat-linux --target=mips-openwrt-linux-uclibc". (gdb) add-symbol-file bin/ar71xx/debug/modules/ath9k.ko 0x83000000 add symbol table from file "bin/ar71xx/debug/modules/ath9k.ko" at .text_addr = 0x83000000 (y or n) y Reading symbols from /home/brown/wifi/dev/openwrt/trunk-wndr-svn/bin/ar71xx/debug/modules/ath9k.ko...done. (gdb) info line ath_beacon_config Line 709 of "/home/brown/wifi/dev/openwrt/trunk-wndr-svn/build_dir/linux-ar71xx_generic/compat-wireless-2011-01-24/drivers/net/wireless/ath/ath9k/beacon.c" starts at address 0xcfc <ath_beacon_config> and ends at 0xd20 <ath_beacon_config+36>. (gdb) quit A gdb run on the mips target also has this same problem. The x86 gdb doesn't have this problem with x86 modules. Any idea what's wrong? Steve _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel