[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: htags -d not working?
From: |
Rui Lopes |
Subject: |
Re: htags -d not working? |
Date: |
Wed, 01 Sep 2004 16:10:27 +0100 |
User-agent: |
Mozilla Thunderbird 0.7.1 (X11/20040719) |
Shigio Yamaguchi wrote:
Htags says that there is not GTAGS in $TAGSDIR.
Does GTAGS file exist there?
Yes (and the other G* files too).
Would you please show me the result by the following command line?
$ echo $SRCDIR
$ echo $TAGSDIR
$ cd $SRCDIR
$ gtags $TAGSDIR
$ ls -l $TAGSDIR
$ htags -d $TAGSDIR $TAGSDIR
address@hidden ~/Sources/FreeBSD5 $ echo $SRCDIR
/usr/src/sys
address@hidden ~/Sources/FreeBSD5 $ echo $TAGSDIR
/home/rgl/Sources/FreeBSD5
address@hidden ~/Sources/FreeBSD5 $ cd $SRCDIR
address@hidden /usr/src/sys $ ls -l $TAGSDIR
total 0
address@hidden /usr/src/sys $ gtags $TAGSDIR
address@hidden /usr/src/sys $ ls -l $TAGSDIR
total 229568
-rw-r--r-- 1 rgl rgl 778240 1 Set 15:23 GPATH
-rw-r--r-- 1 rgl rgl 172032000 1 Set 15:27 GRTAGS
-rw-r--r-- 1 rgl rgl 34136064 1 Set 15:39 GSYMS
-rw-r--r-- 1 rgl rgl 27918336 1 Set 15:23 GTAGS
address@hidden /usr/src/sys $ htags -d $TAGSDIR $TAGSDIR
htags: GTAGS not found.
I did a ktrace and it showed this:
68822 htags CALL __getcwd(0x8080780,0x400)
68822 htags RET __getcwd 0
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/src/sys/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/src/sys/obj/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/obj/usr/src/sys/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/src/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/src/obj/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/obj/usr/src/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/obj/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL stat(0xbfbfc070,0x807ffc0)
68822 htags NAMI "/usr/obj/usr/GTAGS"
68822 htags RET stat -1 errno 2 No such file or directory
68822 htags CALL write(0x2,0xbfbfbd10,0x7)
68822 htags GIO fd 2 wrote 7 bytes
"htags: "
68822 htags RET write 7
68822 htags CALL write(0x2,0xbfbfbd30,0x10)
68822 htags GIO fd 2 wrote 16 bytes
"GTAGS not found."
68822 htags RET write 16/0x10
I didn't look much into the source code, but the getdbpath function is
not getting the variable we set on the command line (and it seems it
wasn't meant to receive it):
/*
* get root, cwd and dbpath.
*/
getdbpath(cwdpath, rootpath, dbpath, 0);
if (arg_dbpath[0])
strlimcpy(dbpath, arg_dbpath, sizeof(dbpath));
since getdbpath cannot find GTAGS in current directory (and others, like
you can see on the ktrace), it aborts the program here:
if (*root == 0)
die_with_code(3, "GTAGS not found.");
Hope this helps.
Regards,
Rui Lopes
- htags -d not working?, Rui Lopes, 2004/09/01
- Re: htags -d not working?, Shigio Yamaguchi, 2004/09/01
- Re: htags -d not working?, Rui Lopes, 2004/09/02
- Re: htags -d not working?, Shigio Yamaguchi, 2004/09/01
- Re: htags -d not working?,
Rui Lopes <=
- Re: htags -d not working?, Shigio Yamaguchi, 2004/09/01
- Re: htags -d not working?, Rui Lopes, 2004/09/02
- Re: htags -d not working?, Shigio Yamaguchi, 2004/09/01
- Re: htags -d not working?, Rui Lopes, 2004/09/02
- Re: htags -d not working?, Rui Lopes, 2004/09/02