This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address


On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>  
> Hi Daniel 
> 
> 	I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the library.
> Bad luck!  New errors occured include Malformed packet(b) (missing colon)
> and Invalid remote reply when I continue to debug my peogram. Belowed is the
> snapshot
> 
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/devkit/pp
> c/8xx/target/usr/lib/

No.  Don't use solib-search-path for this.

Use:
  set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target

> (gdb) n
> warning: Invalid remote reply: n8003

You are using MontaVista's gdbserver.  You should be using their GDB,
too.  This only works with both.


-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]