From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7598 invoked by alias); 8 Jan 2007 19:16:14 -0000 Received: (qmail 7588 invoked by uid 22791); 8 Jan 2007 19:16:13 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 08 Jan 2007 19:16:07 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H3zyX-0005nG-Ep; Mon, 08 Jan 2007 14:16:05 -0500 Date: Mon, 08 Jan 2007 19:16:00 -0000 From: Daniel Jacobowitz To: Arun Biyani Cc: gdb@sourceware.org Subject: Re: Setting library path Message-ID: <20070108191605.GA22240@nevyn.them.org> Mail-Followup-To: Arun Biyani , gdb@sourceware.org References: <45A295B3.6010504@unix.telasic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45A295B3.6010504@unix.telasic.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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-01/txt/msg00124.txt.bz2 On Mon, Jan 08, 2007 at 11:04:19AM -0800, Arun Biyani wrote: > I have been trying to setup GDB for cross debugging. Host x86 Linux. > Remote Coldfire 5272. Gdb behaves > strangely. Setting a breakpoint causes illegal instruction trap after > the breakpoint is executed. While searching > the web, I came across this hint below. > How do I tell gdb where the libraries are? I am using "m68k-elf-gdb" > which I found at snapgear.org. On the > system, I can see /usr/local/m68k-uclinux/lib That is for targeting a system using shared libraries. If you are using m68k-elf, you are probably not using shared libraries, and this won't help you. I don't know what might be wrong, but it sounds like your GDB and target do not agree on the proper breakpoint. -- Daniel Jacobowitz CodeSourcery