From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2249 invoked by alias); 10 Feb 2006 21:45:01 -0000 Received: (qmail 2208 invoked by uid 22791); 10 Feb 2006 21:45:01 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Feb 2006 21:45:00 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 156D748CD95; Fri, 10 Feb 2006 16:44:58 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04427-01-2; Fri, 10 Feb 2006 16:44:57 -0500 (EST) Received: from takamaka.act-europe.fr (s142-179-108-108.bc.hsia.telus.net [142.179.108.108]) by nile.gnat.com (Postfix) with ESMTP id 8666E48CBFD; Fri, 10 Feb 2006 16:44:57 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id B9C6D47E7E; Fri, 10 Feb 2006 13:44:53 -0800 (PST) Date: Fri, 10 Feb 2006 21:45:00 -0000 From: Joel Brobecker To: Yasuo Iwakura Cc: gdb@sourceware.org Subject: Re: gdb does not find any source files in a very simple testcase. Message-ID: <20060210214453.GO1013@adacore.com> References: <1139607618.14928.25.camel@lainsglove> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1139607618.14928.25.camel@lainsglove> User-Agent: Mutt/1.4i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00094.txt.bz2 > Then i compile it using: > > g++ main.cc (using gcc with a main.c does not work either) Is this the complete command you used? You should add "-g" to tell the compiler to include debugging information. Without that, the debugger operations are limited. -- Joel