bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SQLite3 API support


From: Hideki IWAMOTO
Subject: Re: SQLite3 API support
Date: Mon, 10 Nov 2014 01:29:00 +0900

Hi. Yamaguchi san.

When I use the sqlite3 format tag file, "global -x main" runs forever.

You wrote the following comment in dbop3_first() and dbop3_next().

  Sqlite3 returns SQLITE_MISUSE if it is called after SQLITE_DONE.

However, in my environment, SQLITE_ROW is returned instead of SQLITE_MISUSE. 

----------------------------
$ sqlite3 -version
3.8.7.1 2014-10-29 13:59:56 3b7b72c4685aa5cf5e675c2c47ebec10d9704221
$ echo 'int main(){}' > a.c
$ gtags --sqlite3
$ ls
GPATH  GRTAGS  GTAGS  a.c
$ gdb -q global
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) b gtags_first
Breakpoint 1 at 0x416e00: file gtagsop.c, line 682.
(gdb) b gtags_next
Breakpoint 2 at 0x416ab0: file gtagsop.c, line 893.
(gdb) b dbop.c:1223
Breakpoint 3 at 0x413bca: file dbop.c, line 1223.
(gdb) b dbop.c:1289
Breakpoint 4 at 0x4140a0: file dbop.c, line 1289.
(gdb) r -x main
Starting program: /home/iwamoto/global/bin/global -x main
[Thread debugging using libthread_db enabled]
[New Thread 46912498042240 (LWP 25611)]
[Switching to Thread 46912498042240 (LWP 25611)]

Breakpoint 1, gtags_first (gtop=0x584e40, pattern=0x7fffffe329bb "main", 
flags=0) at gtagsop.c:682
682     {
(gdb) c
Continuing.

Breakpoint 3, dbop3_first (dbop=0x598850, name=0x7fffffe329bb "main", 
preg=Variable "preg" is not available.
) at dbop.c:1223
1223                    rc = sqlite3_step(dbop->stmt);
(gdb) n
1224                    if (rc == SQLITE_ROW) {
(gdb) p rc
$1 = 100
(gdb) c
Continuing.

Breakpoint 4, dbop3_next (dbop=0x598850) at dbop.c:1289
1289                    rc = sqlite3_step(dbop->stmt);
(gdb) n
1290                    if (rc == SQLITE_ROW) {
(gdb) p rc
$2 = 101
(gdb) c
Continuing.
main                1 a.c              int main(){}

Breakpoint 2, gtags_next (gtop=0x584e40) at gtagsop.c:893
893     {
(gdb) c
Continuing.

Breakpoint 4, dbop3_next (dbop=0x598850) at dbop.c:1289
1289                    rc = sqlite3_step(dbop->stmt);
(gdb) n
1290                    if (rc == SQLITE_ROW) {
(gdb) p rc
$3 = 100

-- 
Hideki IWAMOTO <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]