From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18532 invoked by alias); 1 Jun 2009 19:37:48 -0000 Received: (qmail 18524 invoked by uid 22791); 1 Jun 2009 19:37:48 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Jun 2009 19:37:43 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id AE697134BB; Mon, 1 Jun 2009 12:37:41 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost3.vmware.com (Postfix) with ESMTP id A4A45CDAE4; Mon, 1 Jun 2009 12:37:41 -0700 (PDT) Message-ID: <4A242D62.1020604@vmware.com> Date: Mon, 01 Jun 2009 19:37:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: maybedoo CC: "gdb@sourceware.org" Subject: Re: Elf debugging References: <23814190.post@talk.nabble.com> In-Reply-To: <23814190.post@talk.nabble.com> 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: 2009-06/txt/msg00005.txt.bz2 maybedoo wrote: > Hi, > > I want to debug an elf binary. Compiling with the debugging symbols works > fine, but when I'm connected with gdb, after loading it, it can't find my > source files. I've set the path to the src with "directory" but the same. > How can I find out what files are loaded and how can I load my file I need > for a breakpoint? It should work. What compiler are you using?