From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8933 invoked by alias); 8 Jul 2002 23:24:20 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 8916 invoked from network); 8 Jul 2002 23:24:18 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 8 Jul 2002 23:24:18 -0000 Received: from makita.cygnus.com (makita.sfbay.redhat.com [192.168.30.83]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id QAA02265; Mon, 8 Jul 2002 16:24:16 -0700 (PDT) Received: from localhost (keiths@localhost) by makita.cygnus.com (8.8.8+Sun/8.6.4) with ESMTP id QAA03294; Mon, 8 Jul 2002 16:24:15 -0700 (PDT) X-Authentication-Warning: makita.cygnus.com: keiths owned process doing -bs Date: Mon, 08 Jul 2002 16:24:00 -0000 From: Keith Seitz X-X-Sender: To: Fernando Martins cc: , Subject: Re: How to see source code? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q3/txt/msg00010.txt.bz2 On Tue, 9 Jul 2002, Fernando Martins wrote: > a newbie question: I compiled a package (configure/make/make install) and I > was trying to debug it. However when I run gdb (gdb gda-test.exe) I get a > window with Assembly code and I don't get source code when I select SOURCE. > I want to step over the C source code, not assembly. Make sure that your executable was built with debugging info ("-g" option to gcc). > Also, if I select menu File; Source I get an error (invalid command or > so). File->Source "sources" a GDB command script file. To view source files, use the file combobox on the source window (or the function browser). Keith