From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3320 invoked by alias); 7 Feb 2008 14:53:25 -0000 Received: (qmail 3312 invoked by uid 22791); 7 Feb 2008 14:53:24 -0000 X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_34,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Feb 2008 14:53:01 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m17Eqxrt018053 for ; Thu, 7 Feb 2008 09:52:59 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m17EqxFI006170 for ; Thu, 7 Feb 2008 09:52:59 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m17Eqwqj001245; Thu, 7 Feb 2008 09:52:59 -0500 Message-ID: <47AB1B2D.3050102@redhat.com> Date: Thu, 07 Feb 2008 14:53:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Stan Cox CC: frysk@sourceware.org Subject: Re: [SCM] master: List around the PC whenever the frame changes. References: <20080207032944.10595.qmail@sourceware.org> In-Reply-To: <20080207032944.10595.qmail@sourceware.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00055.txt.bz2 Stan, Are we testing this? Andrew > The branch, master has been updated > via aa5fe5607833c6aa8117b82cfe2532b721d1939f (commit) > from 72daf237213a1f1758262e493f709c74a7f37630 (commit) > > Those revisions listed above that are new to this repository have > not appeared on any other notification email. > > - Log ----------------------------------------------------------------- > commit aa5fe5607833c6aa8117b82cfe2532b721d1939f > Author: Stan Cox > Date: Wed Feb 6 22:24:56 2008 -0500 > > List around the PC whenever the frame changes. > > * ListCommand.java (currentFrame): New. > (interpret): Use it. > > ----------------------------------------------------------------------- > > Summary of changes: > frysk-core/frysk/hpd/ChangeLog | 5 +++++ > frysk-core/frysk/hpd/ListCommand.java | 6 ++++-- > 2 files changed, 9 insertions(+), 2 deletions(-) > > First 500 lines of diff: > diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog > index ba4301b..4c62efd 100644 > --- a/frysk-core/frysk/hpd/ChangeLog > +++ b/frysk-core/frysk/hpd/ChangeLog > @@ -1,3 +1,8 @@ > +2008-02-06 Stan Cox > + > + * ListCommand.java (currentFrame): New. > + (interpret): Use it. > + > 2008-02-06 Phil Muldoon > > * CLI.java (addMessage): Synchronize on message. > diff --git a/frysk-core/frysk/hpd/ListCommand.java b/frysk-core/frysk/hpd/ListCommand.java > index 72a4e24..d9d4dfa 100644 > --- a/frysk-core/frysk/hpd/ListCommand.java > +++ b/frysk-core/frysk/hpd/ListCommand.java > @@ -82,6 +82,7 @@ class ListCommand extends ParameterizedCommand { > return new Options(); > } > > + private DebugInfoFrame currentFrame = null; > private File file = null; > private int line; > private int exec_line = 0; > @@ -147,7 +148,7 @@ class ListCommand extends ParameterizedCommand { > line = exec_line - 10; > } > > - if (file == null) { > + if (file == null || frame != currentFrame) { > if (frame.getLine() != SourceLocation.UNKNOWN) { > file = (frame.getLine()).getFile(); > if (file == null) { > @@ -155,7 +156,8 @@ class ListCommand extends ParameterizedCommand { > Message.TYPE_NORMAL); > return; > } > - line = (frame.getLine()).getLine() - 10; > + line = (frame.getLine()).getLine() - (windowSize / 2); > + currentFrame = frame; > if (exec_line == 0) > exec_line = line; > } > > > hooks/post-receive > -- > frysk system monitor/debugger >