On 7/12/07, Gavin Maltby <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 07/12/07 05:38, Aubrey Li wrote:
> > Hi list,
> >
> > Does anyone have successful experience about vim + cscope to browse
> > solaris source code?
> > Unfortunate, I encountered the following error,
> > --------
> > [EMAIL PROTECTED]
> > /export/home/aubrey/work/onnv-gate/usr/src/uts
> > [EMAIL PROTECTED] -l cscope.*
> > -rw-r--r--   1 aubrey   aubrey    157421 Jul 13 09:23 cscope.files
> > -rw-r--r--   1 aubrey   aubrey   8896902 Jul 13 09:24 cscope.in.out
> > -rw-r--r--   1 aubrey   aubrey   77068303 Jul 13 09:24 cscope.out
> > -rw-r--r--   1 aubrey   aubrey   58314408 Jul 13 09:24 cscope.po.out
> > [EMAIL PROTECTED] i86pc/dboot/dboot_elfload.c
> > Error detected while processing 
> > /export/home/aubrey/.vim/plugin/cscope_maps.vim:
> > line   42:
> > cs_read_prompt EOF: Not a directory
> > E609: Cscope error: cscope: cannot read list size from file cscope.out
>
> The ON 'xref' utility builds the database in cscope-fast format, so I'm 
> guessing
> the above may be a case of picking up the old cscope program.  When I remove
> the cscopeprg directive below I get a related error:
>
> Error detected while processing /home/gavinm/.vimrc:
> line  213:
> cs_read_prompt EOF: No such file or directory
>
> I have the following in my .vimrc which appears to make it all work (has
> been this way for some time and I can't remember how it all hangs
> together!):
>

Thanks, I've already make it work with Tirthankar's help.
Since he didn't post his method on mailing list, here I'd like to
share his method with others.
It works fine on my side.

-Aubrey

On 7/12/07, Tirthankar <[EMAIL PROTECTED]> wrote:
> Actually never tried that.
>
> I was using cscope + vim on my source code (not solaris source gate)
>
> I build the cscope using the following steps
> 1.  cd to the directory where you want to start
> 2.  find . -name *.h >>cscope.files.bak
> 3.  find . -name *.c >>cscope.files.bak
> 4. find . -name *.cc >>cscope.files.bak
> 5. grep -v SCCS cscope.files.bak >cscope.files
> 6. cscope -b
> 7. ctags -R .
>
> Hope this helps.
>
> Thanks,
> Tirthankar
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to