From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28183 invoked by alias); 8 Jan 2007 19:04:32 -0000 Received: (qmail 28172 invoked by uid 22791); 8 Jan 2007 19:04:32 -0000 X-Spam-Check-By: sourceware.org Received: from mail.telasic.com (HELO mail.telasic.com) (65.241.39.67) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Jan 2007 19:04:23 +0000 Received: from [127.0.0.1] ([192.168.10.133]) by mail.telasic.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 8 Jan 2007 11:04:21 -0800 Message-ID: <45A295B3.6010504@unix.telasic.com> Date: Mon, 08 Jan 2007 19:04:00 -0000 From: Arun Biyani User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Setting library path Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00123.txt.bz2 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. * When cross-debugging (i.e. when the remote system is running a different OS or on a different processor type), you may have to set the path gdb uses to find shared libraries when you start gdb, or it will fail with strange errors. The GDB manual is silent on this important topic; Daniel Jacobowitz told me about it, and I also found some doc about it at Axis Communications. My recipe takes care of this for my environment, but you may need to futz around a bit with this if gdb acts insane on startup. 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 [lib$:617] ls m5407/ m5200/ libstdc++.a crti.o libpthread.a mcpu32/ libiberty.a libstdc++.la* crtn.o libresolv.a m5307/ libssp.a libsupc++.a libc.a librt.a m528x/ libssp_nonshared.a libsupc++.la* libcrypt.a libutil.a m68000/ libssp_nonshared.la* crt0.o libm.a elf2flt.ld m5206e/ libssp.la* crt1.o libnsl.a ldscripts/ [tmp$:526] Are these the libraries gdb is looking for? Thx