From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3484 invoked by alias); 6 Oct 2005 01:20:49 -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 3474 invoked by uid 22791); 6 Oct 2005 01:20:48 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 06 Oct 2005 01:20:48 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1ENKRC-0005X6-07; Wed, 05 Oct 2005 21:20:46 -0400 Date: Thu, 06 Oct 2005 01:20:00 -0000 From: Daniel Jacobowitz To: gsaxena@cs.kent.edu Cc: gdb@sources.redhat.com Subject: Re: Way for examining executing code in a different obj file Message-ID: <20051006012045.GB21221@nevyn.them.org> Mail-Followup-To: gsaxena@cs.kent.edu, gdb@sources.redhat.com References: <50653.131.123.34.40.1128560803.squirrel@webmail.cs.kent.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50653.131.123.34.40.1128560803.squirrel@webmail.cs.kent.edu> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00023.txt.bz2 On Wed, Oct 05, 2005 at 09:06:43PM -0400, gsaxena@cs.kent.edu wrote: > main.cxx is the main UserInterface code running libraries from fltk. > node.c is also compiled into an object called node. The node is using > libraries from lam-mpi for parallel operations. When I run the program in > gdb, I can see lines from main.cxx but occasionally the code in node.c is > also executed. I haven't understood how I can access the line nos. I'm not > even sure if it is possible. Could someone let me know what I must do ? Have you tried "list file:line", e.g. "list node.c:30"? -- Daniel Jacobowitz CodeSourcery, LLC