i added another display for branch_name, it's #3 now. 222 if ((error = iter->next(out, iter)) < 0) 3: branch_name = "refs/tags/0.10.7" (gdb) s refdb_fs_backend__iterator_next (out=0x5555555ac510, _iter=0x555557fb0ec0) at /media/extradisk/src/codefudge/codefudge/datagen/bold84-cppgit2/ext/libgit2/src/refdb_fs.c:874 874 { 3: branch_name = "refs/tags/0.10.7" (gdb) list 869 return error; 870 } 871 872 static int refdb_fs_backend__iterator_next( 873 git_reference **out, git_reference_iterator *_iter) 874 { 875 int error = GIT_ITEROVER; 876 refdb_fs_iter *iter = GIT_CONTAINER_OF(_iter, refdb_fs_iter, parent); 877 refdb_fs_backend *backend = GIT_CONTAINER_OF(iter->parent.db->backend, refdb_fs_backend, parent); 878 struct packref *ref; (gdb) list 879 880 while (iter->loose_pos < iter->loose.length) { 881 const char *path = git_vector_get(&iter->loose, iter->loose_pos++); 882 883 if (loose_lookup(out, backend, path) == 0) { 884 ref = git_sortedcache_lookup(iter->cache, path); 885 if (ref) 886 ref->flags |= PACKREF_SHADOWED; 887 888 return 0;