[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    Re: Re:Re: [uClinux-dev] Debugging Linux with xcopilot
From:       "Hao Tang" <tanghao () lineo ! ca>
Date:       2001-01-31 15:48:02
[Download RAW message or body]

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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic