From: Liu Zheng yu (lzyhm@263.net)
Date: Wed Jan 31 2001 - 22:25:35 EST
Mr Tang: Maybe I didn't express myself correctly, I can find the source code of kernel through "symbol-file linux/linux" and "directory linux/kernel" etc in gdb. but when break in application for example "login.c",How can i load the symbol of login. The symbol position contained in login.coff is not correct.I try "add_symbol_file login.coff XXXXXXXX",but I don't know how can I get XXXXXXXX quickly. thank you again. >hi, > you should add something like >./gdb --directory=~/uclinux/linux/lib/:~/uclinux/linux/kernel/:~/uclinux/lin >ux/mmnommu/ >in you gdb parameter.to specify the source code dir. > it should be ok. > good luck!!! >btw. could you please cc the mail to uclinux-dev@uClinux.org so other people >can share the experience ,thanks! > > > >Hao Tang > >----- Original Message ----- >From: Liu Zheng yu <lzyhm@263.net> >To: <tanghao@lineo.ca> >Sent: Tuesday, January 30, 2001 10:57 PM >Subject: Re: Re:Re: [uClinux-dev] Debugging Linux with xcopilot > > >> hi: >> As you tell me,I can debug kenel step by step,thank you. >> when I set BREAK in application,I can catch the SIGTRAP, >> But how can I put the symbol of the application at correct >> position. >> >> My step is as following: >> ...... >> (gdb) file linux/linux >> Reading symbols from linux/linux...done. >> (gdb) target remote /dev/ttype >> Remote debugging using /dev/ttype >> do_fork (clone_flags=0, usp=0, regs=0x0) at fork.c:312 >> 312 fork.c: No such file or directory. >> ...... >> Program received signal SIGTRAP, Trace/breakpoint trap. >> 0x10c95fbe in ?? () >> (gdb) n >> Cannot find bounds of current function >> >> ??? add_symbol_file XXX XXXXXXXX >> >> I can't find the different between your gdb-stub and jeff's. >> They all have problem when you set break at wrong position. >> >> >> >> _____________________________________________ >> 263Commail,企业的电子邮件专家 http://mail.263.net >> > >This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/ _____________________________________________ 263Commail,企业的电子邮件专家 http://mail.263.net This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:28 EDT