From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1345 invoked by alias); 15 May 2009 18:09:43 -0000 Received: (qmail 1337 invoked by uid 22791); 15 May 2009 18:09:42 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from bay0-omc1-s1.bay0.hotmail.com (HELO bay0-omc1-s1.bay0.hotmail.com) (65.54.246.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 May 2009 18:09:37 +0000 Received: from BAY109-DS6 ([64.4.19.92]) by bay0-omc1-s1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 15 May 2009 11:09:35 -0700 Message-ID: From: "Rodrigo Dominguez" To: "'Eli Zaretskii'" CC: References: <83iqk2qobj.fsf@gnu.org> In-Reply-To: <83iqk2qobj.fsf@gnu.org> Subject: RE: How to print the current source line number Date: Fri, 15 May 2009 18:09: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/msg00089.txt.bz2 Either 'frame' or 'list *$pc' work. Thank you! > -----Original Message----- > From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On > Behalf Of Eli Zaretskii > Sent: Friday, May 15, 2009 1:16 PM > To: Rodrigo Dominguez > Cc: gdb@sourceware.org > Subject: Re: How to print the current source line number > > > From: "Rodrigo Dominguez" > > Date: Fri, 15 May 2009 11:59:11 -0400 > > > > 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? > > Does > > list *$pc > > do what you want?