This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Forw: Is this possible with gdb?


Systemtap should be able to express this type of tracing, albeit
somewhat expensively:

probe kernel.statement("*@file.c:*") {
  trace ($pp) # a magic variable containing current function/filename/line
}



Path: news.gmane.org!not-for-mail
From: Ismail Donmez <ismail@kde.org.tr>
Subject: Is this possible with gdb?
Date: Wed, 25 May 2005 18:05:59 +0300
To: gdb@sources.redhat.com

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]