From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3830 invoked by alias); 3 Sep 2007 14:49:44 -0000 Received: (qmail 3822 invoked by uid 22791); 3 Sep 2007 14:49:43 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Sep 2007 14:49:34 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 75CED982A2; Mon, 3 Sep 2007 14:49:34 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 5E0D798109; Mon, 3 Sep 2007 14:49:33 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1ISDF4-0001yB-TI; Mon, 03 Sep 2007 10:49:30 -0400 Date: Mon, 03 Sep 2007 14:49:00 -0000 From: 'Daniel Jacobowitz' To: xchen Cc: gdb@sourceware.org Subject: Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address Message-ID: <20070903144930.GA7463@caradoc.them.org> Mail-Followup-To: xchen , gdb@sourceware.org References: <20070903103005.07EAD98109@nan.false.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070903103005.07EAD98109@nan.false.org> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00016.txt.bz2 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