From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5599 invoked by alias); 25 May 2005 15:14:10 -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 5541 invoked by uid 22791); 25 May 2005 15:14:06 -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:14:06 +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:14:03 -0600 From: Ismail Donmez To: gdb@sources.redhat.com Subject: Re: Is this possible with gdb? Date: Wed, 25 May 2005 15:14:00 -0000 User-Agent: KMail/1.8.50 References: <200505251805.59367.ismail@kde.org.tr> <20050525151027.GE18451@white> In-Reply-To: <20050525151027.GE18451@white> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505251815.20817.ismail@kde.org.tr> X-SW-Source: 2005-05/txt/msg00319.txt.bz2 Hi, On Wednesday 25 May 2005 18:10, Bob Rossi wrote: [..] > > 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. > > GDB is not a code coverage tool. You could look into use gcov. Thanks I will check it. > > However, with GDB you can step through your program. Try this, > gdb ./foo > > b main > r > n > n > n > n No I can't use this as the program is threaded and I need to do some input from the gui thread. ( KDE/Qt app ) Regards, ismail -- They say people don't believe in heroes anymore