This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: Is this possible with gdb?
- From: "Bloch, Jack" <jack dot bloch at siemens dot com>
- To: "'Ismail Donmez'" <ismail at kde dot org dot tr>, gdb at sources dot redhat dot com
- Date: Wed, 25 May 2005 08:29:09 -0700
- Subject: RE: Is this possible with gdb?
Try this
start you program under GDB
define mytrace
set height 0
b main
run
while 1
step
end
end
type mytrace at the gdb prompt
-----Original Message-----
From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com]On Behalf Of Ismail Donmez
Sent: Wednesday, May 25, 2005 11:06 AM
To: gdb@sources.redhat.com
Subject: Is this possible with gdb?
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.
Regards,
ismail
--
They say people don't believe in heroes anymore