From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7967 invoked by alias); 26 Sep 2002 17:04:39 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7952 invoked from network); 26 Sep 2002 17:04:37 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 26 Sep 2002 17:04:37 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D23243D12; Thu, 26 Sep 2002 13:04:37 -0400 (EDT) Message-ID: <3D933E25.1080508@redhat.com> Date: Thu, 26 Sep 2002 10:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Squal Cc: gdb@sources.redhat.com, froure@enssat.fr Subject: Re: displaying source files during debugging. References: <3D932899.F708BD5F@enssat.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00436.txt.bz2 > Hi, > > We are trying to debug program with gdb for a > m68k target. We are compiling the source files > in two executable: > - the first in aout format. > - the second in srecord format (with objcopy). > The second is download on the target and the first > is giving to gdb in order to reach the symbol table. > Our problem is that this configuration don't allow > us to display source files during debugging. > We tried to specifie the source files directorie > with the dir command but with no success. Off the top of my head: Is the original code compiled with -g? Which C compiler? The problem may be that GDB doesn't recognize the debug info being generated by the compiler. Is gdb reporting ``no symbol information found''. Andrew