From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27515 invoked by alias); 25 May 2005 15:29:42 -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 27456 invoked by uid 22791); 25 May 2005 15:29:38 -0000 Received: from mail.siemenscom.com (HELO mail.siemenscom.com) (12.146.131.10) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 25 May 2005 15:29:38 +0000 Received: from fdns2.rolm.com (localhost [127.0.0.1]) by mail.siemenscom.com (8.12.10/8.12.10) with ESMTP id j4PF2gYU017882; Wed, 25 May 2005 08:02:43 -0700 Received: from stca200a.bus.sc.rolm.com (stca200a.bus.sc.rolm.com [165.218.68.180]) by fdns2.rolm.com (8.12.10/8.12.10) with ESMTP id j4PFTNi7015558; Wed, 25 May 2005 08:29:23 -0700 (PDT) Received: by stca200a.bus.sc.rolm.com with Internet Mail Service (5.5.2657.72) id ; Wed, 25 May 2005 08:29:23 -0700 Message-ID: <2DA8F872430BE8469BF0F403A6103F9205D027@stca20aa.bocc.icn.siemens.com> From: "Bloch, Jack" To: "'Ismail Donmez'" , gdb@sources.redhat.com Subject: RE: Is this possible with gdb? Date: Wed, 25 May 2005 15:29:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2005-05/txt/msg00321.txt.bz2 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 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