From: Bob Rossi <bob@brasko.net>
To: Ismail Donmez <ismail@kde.org.tr>
Cc: gdb@sources.redhat.com
Subject: Re: Is this possible with gdb?
Date: Wed, 25 May 2005 15:10:00 -0000 [thread overview]
Message-ID: <20050525151027.GE18451@white> (raw)
In-Reply-To: <200505251805.59367.ismail@kde.org.tr>
On Wed, May 25, 2005 at 06:05:59PM +0300, Ismail Donmez wrote:
> Hi all,
>
> Sorry if this question came up early before but a Google search didn't result
> in much answer. What I want to do is to see currently executed line to be
> printed on console while using gdb.
>
> Say I got this in foo.cpp
>
> int main()
> {
> i=2;
> return 0;
> }
>
> compiled into foo and I want gdb to print
>
> foo.cpp: line 3
> foo.cpp line 4
> <exit>
>
> So I just want to see porgram flow. Is this possible with gdb or can anyone
> suggest any other solution?
>
> Any help is grealy appreciated.
GDB is not a code coverage tool. You could look into use gcov.
However, with GDB you can step through your program. Try this,
gdb ./foo
b main
r
n
n
n
n
If you like what you see, try reading the manual.
Bob Rossi
next prev parent reply other threads:[~2005-05-25 15:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-25 15:05 Ismail Donmez
2005-05-25 15:10 ` Bob Rossi [this message]
2005-05-25 15:14 ` Manoj Iyer
2005-05-25 15:14 ` Ismail Donmez
2005-05-25 15:29 Bloch, Jack
2005-05-25 15:38 ` Ismail Donmez
2005-05-25 16:06 ` Ismail Donmez
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=20050525151027.GE18451@white \
--to=bob@brasko.net \
--cc=gdb@sources.redhat.com \
--cc=ismail@kde.org.tr \
/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