Article View: gnu.gdb.bug
Article #1228Symbols confusion with MIPSEL target
From: Andrew Bird (Sphere Systems)
Date: Fri, 18 Aug 2006 08:56
Date: Fri, 18 Aug 2006 08:56
45 lines
3093 bytes
3093 bytes
Hi all I'm trying to debug a Linksys WRT54G3G router box using a EPI Majic-LX EJTAG emulator as the remote target. I seem to have a symbols offset problem using both GDB 6.5 release and 6.5.50 from today. The problem is that when setting breakpoints using function addresses they are not entered at the correct address. If I manually set them using the actual address they seem to be in the correct place. I also think this affect printing of variables too. Can anybody tell me what I'm doing wrong? Andrew in .gdbinit set heur 0 set remoteti 10 symbol-file linux/linux/vmlinux target remote 192.168.1.100:2345 ======================================= grep sys_init_module linux/linux/System.map 80012098 T sys_init_module ======================================= GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=mipsel-linux-elf". 0xffffffffbfc00000 in ?? () (gdb) info address sys_init_module Symbol "sys_init_module" is a function at address 0x80012098. (gdb) break sys_init_module Breakpoint 1 at 0x800120c4: file linux/linux/include/linux/sched.h, line 746. (gdb) break *0x80012098 Breakpoint 2 at 0x80012098: file module.c, line 351.
Technical Details
Message-ID:
<mailman.5310.1155891394.9609.bug-gdb@gnu.org>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f5053,611ce4eadbd34ebb,start X-Google-Attributes: gidf5053,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: "Andrew Bird (Sphere Systems)" <ajb@spheresystems.co.uk> Newsgroups: gnu.gdb.bug Subject: Symbols confusion with MIPSEL target Date: Fri, 18 Aug 2006 09:56:20 +0100 Organization: Sphere Systems Ltd Lines: 47 Approved: bug-gdb@gnu.org Message-ID: <mailman.5310.1155891394.9609.bug-gdb@gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.Stanford.EDU 1155891395 25103 199.232.76.165 (18 Aug 2006 08:56:35 GMT) X-Complaints-To: news@news.stanford.edu To: bug-gdb@gnu.org Envelope-to: bug-gdb@gnu.org X-Authentication-Warning: maggie.spheresystems.co.uk: ajb set sender to ajb@spheresystems.co.uk using -f User-Agent: KMail/1.9.3 Content-Disposition: inline X-BeenThere: bug-gdb@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/bug-gdb> List-Post: <mailto:bug-gdb@gnu.org> List-Help: <mailto:bug-gdb-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=subscribe>