This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Way for examining executing code in a different obj file
- From: Daniel Jacobowitz <drow at false dot org>
- To: gsaxena at cs dot kent dot edu
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 5 Oct 2005 21:20:45 -0400
- Subject: Re: Way for examining executing code in a different obj file
- References: <50653.131.123.34.40.1128560803.squirrel@webmail.cs.kent.edu>
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