From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24147 invoked by alias); 25 May 2005 15:05:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23296 invoked by uid 22791); 25 May 2005 15:04:58 -0000 Received: from smtp-send.myrealbox.com (HELO smtp-send.myrealbox.com) (192.108.102.143) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 25 May 2005 15:04:58 +0000 Received: from dsl.dynamic8121397253.ttnet.net.tr kde [81.213.97.253] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 1.5 $ on Linux; Wed, 25 May 2005 09:04:54 -0600 From: Ismail Donmez To: gdb@sources.redhat.com Subject: Is this possible with gdb? Date: Wed, 25 May 2005 15:05:00 -0000 User-Agent: KMail/1.8.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505251805.59367.ismail@kde.org.tr> X-SW-Source: 2005-05/txt/msg00317.txt.bz2 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 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