1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

During PRAGMA vdbe_addoptrace=ON, show calls to sqlite3VdbeResolveLabel()

in the debugging output.

FossilOrigin-Name: 9ff07a06cef6e04777d2d5b81f96e8626e835382e62320ecf17b3ff73573e23e
This commit is contained in:
drh
2018-04-17 19:29:58 +00:00
parent 6e341b9347
commit 2928546d04
3 changed files with 12 additions and 7 deletions

View File

@@ -392,6 +392,11 @@ void sqlite3VdbeResolveLabel(Vdbe *v, int x){
assert( j<p->nLabel );
assert( j>=0 );
if( p->aLabel ){
#ifdef SQLITE_DEBUG
if( p->db->flags & SQLITE_VdbeAddopTrace ){
printf("RESOLVE LABEL %d to %d\n", x, v->nOp);
}
#endif
p->aLabel[j] = v->nOp;
}
}