This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
- From: 'Daniel Jacobowitz' <drow at false dot org>
- To: xchen <xchen at sunrisetelecom dot com dot cn>
- Cc: gdb at sourceware dot org
- Date: Mon, 3 Sep 2007 10:49:30 -0400
- Subject: Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
- References: <20070903103005.07EAD98109@nan.false.org>
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