From: Daniel Jacobowitz <drow@false.org>
To: gsaxena@cs.kent.edu
Cc: gdb@sourceware.org
Subject: Re: Way for examining executing code in a different obj file
Date: Fri, 07 Oct 2005 15:09:00 -0000 [thread overview]
Message-ID: <20051007150941.GA23050@nevyn.them.org> (raw)
In-Reply-To: <1239.131.123.12.11.1128697249.squirrel@webmail.cs.kent.edu>
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
prev parent reply other threads:[~2005-10-07 15:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 1:06 gsaxena
2005-10-06 1:20 ` Daniel Jacobowitz
[not found] ` <1239.131.123.12.11.1128697249.squirrel@webmail.cs.kent.edu>
2005-10-07 15:09 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051007150941.GA23050@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=gsaxena@cs.kent.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox