Way for examining executing code in a different obj file

Daniel Jacobowitz drow@false.org
Thu Oct 6 01:20:00 GMT 2005


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



More information about the Gdb mailing list