From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24395 invoked by alias); 6 Oct 2005 01:06:48 -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 24386 invoked by uid 22791); 6 Oct 2005 01:06:45 -0000 Received: from mscan1.cs.kent.edu (HELO mscan1.cs.kent.edu) (131.123.35.8) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 06 Oct 2005 01:06:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mscan1.cs.kent.edu (8.12.10/8.12.10) with ESMTP id j9616iJR002324 for ; Wed, 5 Oct 2005 21:06:44 -0400 Received: from mscan1.cs.kent.edu ([127.0.0.1]) by localhost (mscan1.cs.kent.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02038-01 for ; Wed, 5 Oct 2005 21:06:43 -0400 (EDT) Received: from webmail.cs.kent.edu (pc6.cs.kent.edu [131.123.35.60]) by mscan1.cs.kent.edu (8.12.10/8.12.10) with ESMTP id j9616heC002316 for ; Wed, 5 Oct 2005 21:06:43 -0400 Received: from 131.123.34.40 (SquirrelMail authenticated user gsaxena); by webmail.cs.kent.edu with HTTP; Wed, 5 Oct 2005 21:06:43 -0400 (EDT) Message-ID: <50653.131.123.34.40.1128560803.squirrel@webmail.cs.kent.edu> Date: Thu, 06 Oct 2005 01:06:00 -0000 Subject: Way for examining executing code in a different obj file From: gsaxena@cs.kent.edu To: gdb@sources.redhat.com User-Agent: SquirrelMail/1.4.3a-11.EL3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-10/txt/msg00021.txt.bz2 Dear folks at GDB, I have the following program str: [TXT] Makefile 05-Oct-2005 20:37 646 [TXT] common.h 05-Oct-2005 15:09 213 [TXT] control.cpp 30-Sep-2005 23:42 112 [TXT] control.h 03-Oct-2005 14:21 524 [IMG] image 29-Sep-2005 20:03 48K [TXT] init.c 02-Oct-2005 02:39 4.6K [TXT] init.h 29-Sep-2005 20:03 784 [TXT] initfile 02-Oct-2005 02:33 554 [TXT] main.cxx 05-Oct-2005 20:38 5.2K [ ] main 05-Oct-2005 20:40 564K [TXT] node.c 05-Oct-2005 20:40 2.2K [TXT] node.h 03-Oct-2005 14:16 113 [ ] node 05-Oct-2005 20:40 888K [TXT] ppm.c 29-Sep-2005 20:03 3.2K [TXT] ppm.h 29-Sep-2005 20:03 310 [DIR] public_html/ 05-Oct-2005 18:40 - [TXT] rand.cpp 02-Oct-2005 00:44 1.0K [TXT] rand.h 02-Oct-2005 00:46 122 [TXT] script 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 ? Thanks, G