13 Feb
2009
13 Feb
'09
5:05 p.m.
Author: mrene Date: Fri Feb 13 11:05:16 2009 New Revision: 11985 Log: GDB Macros FTW Added: freeswitch/trunk/scripts/gdbinit Added: freeswitch/trunk/scripts/gdbinit ============================================================================== --- (empty file) +++ freeswitch/trunk/scripts/gdbinit Fri Feb 13 11:05:16 2009 @@ -0,0 +1,12 @@ +# FreeSWITCH Custom GDB commands +define list_sessions + printf "Listing sessions: \n" + set $i = 0 + set $x=session_manager.session_table->table->first + while($x != 0x0) + printf "uuid %s is at %p\n", $x->pKey, $x->data + set $x = $x->next + set $i = $i + 1 + end + printf "Found %d sessions.\n", $i +end \ No newline at end of file