bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Symbols confusion with MIPSEL target


From: Andrew Bird (Sphere Systems)
Subject: Symbols confusion with MIPSEL target
Date: Fri, 18 Aug 2006 09:56:20 +0100
User-agent: KMail/1.9.3

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]