From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23050 invoked by alias); 7 Oct 2005 15:09:46 -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 23033 invoked by uid 22791); 7 Oct 2005 15:09:43 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 07 Oct 2005 15:09:43 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1ENtqv-00060L-1m; Fri, 07 Oct 2005 11:09:41 -0400 Date: Fri, 07 Oct 2005 15:09:00 -0000 From: Daniel Jacobowitz To: gsaxena@cs.kent.edu Cc: gdb@sourceware.org Subject: Re: Way for examining executing code in a different obj file Message-ID: <20051007150941.GA23050@nevyn.them.org> Mail-Followup-To: gsaxena@cs.kent.edu, gdb@sourceware.org References: <50653.131.123.34.40.1128560803.squirrel@webmail.cs.kent.edu> <20051006012045.GB21221@nevyn.them.org> <1239.131.123.12.11.1128697249.squirrel@webmail.cs.kent.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1239.131.123.12.11.1128697249.squirrel@webmail.cs.kent.edu> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00042.txt.bz2 On Fri, Oct 07, 2005 at 11:00:49AM -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"? > > I think list would only list it for me. I was interested in stepping > through the other binary, as it does get executed through the main program > via a system() call. Is there a way to do this ? The node program uses > lam-mpi libraries in C and the main userinterface code uses C++ library > from fltk. You have to run it by hand or attach to it while it's running using the attach command. -- Daniel Jacobowitz CodeSourcery, LLC