Not a problem. Here you go (gdb) frame 2 #2 0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized out>, param=<value optimized out>) at subscribe.c:485 485 abort();
(gdb) print pa_db $1 = (db_con_t *) 0x83e530 (gdb) print pa_db->curr_ps $6 = (db_ps_t *) 0x7ff74ce7a2b0 (gdb) print (struct prep_stmt*)(*(pa_db)->curr_ps) $2 = (struct prep_stmt *) 0x83f2a0 (gdb) print ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts $3 = (struct my_stmt_ctx *) 0x83f1e0 (gdb) print ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->table.s $4 = 0x83f218 "active_watchersdelete from active_watchers where expires<?\217\001" (gdb) print ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->query.s $5 = 0x83f227 "delete from active_watchers where expires<?\217\001" On Fri, Dec 10, 2010 at 3:57 AM, Anca Vamanu <[email protected]> wrote: > On 12/09/2010 08:18 PM, Duane Larson wrote: > >> Anca, >> It failed quickly. But I am not able to do the Prints like I did last >> time because _h doesn't exist >> (gdb) backtrace >> #0 0x00007ff75074f165 in raise () from /lib/libc.so.6 >> #1 0x00007ff750751f70 in abort () from /lib/libc.so.6 >> #2 0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized out>, >> param=<value optimized out>) at subscribe.c:485 >> #3 0x00000000004a90b6 in timer_ticker () at timer.c:325 >> #4 run_timer_process () at timer.c:395 >> #5 start_timer_processes () at timer.c:475 >> #6 0x000000000042ce8b in main_loop (argc=<value optimized out>, >> argv=<value optimized out>) at main.c:867 >> #7 main (argc=<value optimized out>, argv=<value optimized out>) at >> main.c:1388 >> (gdb) frame 2 >> #2 0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized out>, >> param=<value optimized out>) at subscribe.c:485 >> 485 abort(); >> (gdb) print _h >> No symbol "_h" in current context. >> (gdb) print _h->curr_ps >> No symbol "_h" in current context. >> (gdb) print (struct prep_stmt*)(*(_h)->curr_ps) >> No symbol "_h" in current context. >> (gdb) print (struct prep_stmt*)(*(_h)->curr_ps) >> No symbol "_h" in current context. >> (gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts >> No symbol "_h" in current context. >> (gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts->table.s >> No symbol "_h" in current context. >> (gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts->query.s >> No symbol "_h" in current context. >> > A, sorry, you have to change it a bit: > > pa_db > pa_db->curr_ps > (struct prep_stmt*)(*(pa_db)->curr_ps) > ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts > ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->table.s > ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->query.s > > > > Regards, > > -- > Anca Vamanu > www.voice-system.ro > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- -- *--*--*--*--*--* Duane *--*--*--*--*--* --
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
