From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24172 invoked by alias); 15 May 2009 15:59:24 -0000 Received: (qmail 24164 invoked by uid 22791); 15 May 2009 15:59:23 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_05,SPF_PASS X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s28.bay0.hotmail.com (HELO bay0-omc3-s28.bay0.hotmail.com) (65.54.246.228) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 May 2009 15:59:19 +0000 Received: from BAY109-DS5 ([64.4.19.91]) by bay0-omc3-s28.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 15 May 2009 08:59:17 -0700 Message-ID: From: "Rodrigo Dominguez" To: Subject: How to print the current source line number Date: Fri, 15 May 2009 15:59:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00086.txt.bz2 Hi, How can I print the current source line number in gdb? I have tried the 'list' command and it shows the lines around the current line. However, this command has "memory" and doesn't show the same lines each time it is executed. Is there a better way to print the current line number? Or is there a way to "reset" the memory of the 'line' command so it will show the current line centered around the output? Thank you, Rodrigo Dominguez