From lkoeller@odie.physik2.uni-rostock.de  Sun Oct 13 10:05:24 1996
Received: from odie.physik2.uni-rostock.de (odie.physik2.uni-rostock.de [139.30.40.28])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA25234
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Oct 1996 10:05:22 -0700 (PDT)
Received: (from lkoeller@localhost)
          by odie.physik2.uni-rostock.de (8.7.5/8.7.3) id TAA03153;
          Sun, 13 Oct 1996 19:05:06 +0200 (MET DST)
Message-Id: <199610131705.TAA03153@odie.physik2.uni-rostock.de>
Date: Sun, 13 Oct 1996 19:05:06 +0200 (MET DST)
From: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
Reply-To: lkoeller@odie.physik2.uni-rostock.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: vgrind didn't work correct!
X-Send-Pr-Version: 3.2

>Number:         1785
>Category:       bin
>Synopsis:       vgrind works not as described in the man page!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 13 10:10:01 PDT 1996
>Closed-Date:    Fri Oct 18 19:25:57 MET DST 1996
>Last-Modified:  Fri Oct 18 19:26:52 MET DST 1996
>Originator:     Lars Koeller
>Release:        FreeBSD 2.1.5-RELEASE i386
>Organization:
University of Rostock, Germany
>Environment:

	FreeBSD-2.1.5 system!

>Description:

    Vgrind didn't work as described in the manpage:

      1) There are no "and the name of  the current function is listed down
         the margin of each page as it is encountered" (cite out of manpage) 

	 The page consists of the file name on the top (left and right) 
	 the listing (keywords bold, comments italic, ...) and the date
	 and page number on the bottom of each page. There are no function
	 definition at the margin. I output the page on a PostScript
	 HP LaserJet V via 'vgrind file.c'

      2) No index file is produced. If I understand the manpage right, the 
	 creation of index (touch ./index)  in the current directory
	 should produce a index file of the functions, which could be
         printed with 'vgrind -x index' but the file index is always empty.


>How-To-Repeat:

     See above. call vgrind with any C-source file and look at the output.
     Create the file index in the current directory, call vgrind again with
     the C-source file and look into ./index it's always empty.

>Fix:

     Don't know.


>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: lkoeller@odie.physik2.uni-rostock.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1785: vgrind didn't work correct!
Date: Mon, 14 Oct 1996 18:44:13 +0200 (MET DST)

 As Lars Koeller wrote:
 
 >     Vgrind didn't work as described in the manpage:
 > 
 >       1) There are no "and the name of  the current function is listed down
 >          the margin of each page as it is encountered" (cite out of manpage)
 
 I have seen them, though it's not clear to me either when vgrind
 decides to print them and when not.  Maybe they are printed for
 functions spanning multiple pages only.
 
 >       2) No index file is produced. If I understand the manpage right, the 
 > 	 creation of index (touch ./index)  in the current directory
 > 	 should produce a index file of the functions, which could be
 >          printed with 'vgrind -x index' but the file index is always empty.
 > 
 
 j@ida 697% touch index
 j@ida 698% vgrind -lc++ -p groff kabel.cc > kabel.PS
 j@ida 699% cat index
 dump_kabel kabel.cc 3
 get_kabel kabel.cc 2
 list_all_kabel kabel.cc 3
 
 (Note that the -p option is new in 2.2.)
 
 So it works for me.  If it doesn't work for you, i think it's
 basically the same problem as with the function labelling in 1).
 
 (Without a suggested fix, it's unlikely that any person other than
 Bill Joy will ever dig into this code again.  It looks basically
 ``write-only''. ;-)
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)

From: Lars Koeller <lkoeller@odie.physik2.uni-rostock.de>
To: J Wunsch <j@uriah.heep.sax.de>
Cc: FreeBSD-gnats-submit@freebsd.org, Lars_Koeller@odie.physik2.uni-rostock.de
Subject: Re: bin/1785: vgrind didn't work correct! 
Date: Tue, 15 Oct 1996 08:02:23 +0200

 In message <199610141644.SAA06414@uriah.heep.sax.de>,
 J Wunsch writes:
 
 >As Lars Koeller wrote:
 >
 >>     Vgrind didn't work as described in the manpage:
 >> 
 >>       1) There are no "and the name of  the current function is listed down
 >>          the margin of each page as it is encountered" (cite out of manpage)
 >
 >I have seen them, though it's not clear to me either when vgrind
 >decides to print them and when not.  Maybe they are printed for
 >functions spanning multiple pages only.
 >
 >>       2) No index file is produced. If I understand the manpage right, the 
 >> 	 creation of index (touch ./index)  in the current directory
 >> 	 should produce a index file of the functions, which could be
 >>          printed with 'vgrind -x index' but the file index is always empty.
 >> 
 >
 >j@ida 697% touch index
 >j@ida 698% vgrind -lc++ -p groff kabel.cc > kabel.PS
 >j@ida 699% cat index
 >dump_kabel kabel.cc 3
 >get_kabel kabel.cc 2
 >list_all_kabel kabel.cc 3
 >
 >(Note that the -p option is new in 2.2.)
 >
 >So it works for me.  If it doesn't work for you, i think it's
 >basically the same problem as with the function labelling in 1).
 >
 >(Without a suggested fix, it's unlikely that any person other than
 >Bill Joy will ever dig into this code again.  It looks basically
 >``write-only''. ;-)
 >
 
       After your hint, I've experienced a  little bit with vgrind. And sure
    it works correct, but  only and  really only if  the sources  are passed
    through indent.   Then there are  the  function definitions at  the left
    margin and vgrind  produces an index file.
 
       Perhaps it would be  wise to point  to this assumtions vgrind made in
    the manpage at an  early point. Also  an  option that pases the  sources
    through  indent cound be a nice  extension or a  link  in the 'SEE ALSO'
    section to indent.
 
    Regards
 
    Lars
 -- 
 ________________________________________________________________________
 Lars Kller                  Phone:  +49 381/498-1665, Fax: -1667
 University of Rostock        E-Mail: 
 Department of Physics          Lars_Koeller@odie.physik2.Uni-Rostock.DE
 Universittsplatz 3          Anonymous ftp:
 D-18051 Rostock (Germany)      ftp://odie.physik2.uni-rostock.de/pub
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Fri Oct 18 19:25:57 MET DST 1996 
State-Changed-Why:  
Believed to be fixed with the following respective file rev's: 

vgrind/vfontedpr.c 1.5 
vgrind/vgrindefs.src 1.4 
vgrind/regexp.c 1.4 

>Unformatted:
 
