--- Natesh Kedlaya <[EMAIL PROTECTED]> wrote: > Hi, > I am using Vim6.3 > My cscope db was built on a source directory structure 'src1' which was > mounted on /dir1. If I use this cscope db in my vim, my cscope query would > yeild following results. > > ---------------------------------------------------------------------------- > Cscope tag: myFunc > # line filename / context / line > 1 342 /dir1/src1/util/myprog.h > <<GLOBAL>> > void myFunc(); > 2 1563 /dir1/src1/util/mycallprog.c > <<myCallingFunc>> > op_status = myFunc(); > 3 1584 /dir1/src1/util/myprog.c > <<myFunc>> > void myFunc() > Enter nr of choice (<CR> to abort): > ------------------------------------------------------------------------------ > > Everything works good till I mount the source directory structure > on /dir2 instead of /dir1. The cscope db still has referrers to the /dir1 > based on which > it was built. > > I don't want to rebuild the cscope db with the new mount point. > How do I make use of the existing cscope db by somehow modifying the > cscope search results to point to /dir2 instead of /dir1? I would like to > see > the following output when I do cscope search. > > ---------------------------------------------------------------------------- > > Cscope tag: myFunc > > # line filename / context / line > > 1 342 /dir2/src1/util/myprog.h > > <<GLOBAL>> > > void myFunc(); > > 2 1563 /dir2/src1/util/mycallprog.c > > <<myCallingFunc>> > > op_status = myFunc(); > > 3 1584 /dir2/src1/util/myprog.c > > <<myFunc>> > > void myFunc() > > Enter nr of choice (<CR> to abort): > > ------------------------------------------------------------------------------ > > > Any pointers appreciated.
Hello Natesh, I have a similar setup. There's a "work" directory that shows up as /mnt1/work or /mnt2/work etc. on different hosts. I built the cscope db once, in work directory with $ cd /mnt1/work $ cscope -bRq Then from the other machine: $ cd /mnt2/work $ gvim ":cs add cscope.out" (Note that I did not specify full path) ":cs show" shows "cscope.out" (not full path) as the database name. Whenever I do a cscope search I see relative pathnames, never the full path. Can you try this and see if it works? Regards, Navdeep > > Thanks, > Natesh > > > > > > > ____________________________________________________________________________________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > ____________________________________________________________________________________Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/