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
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