[Freeswitch-svn] [commit] r11985 - freeswitch/trunk/scripts

FreeSWITCH SVN mrene at freeswitch.org
Fri Feb 13 09:05:16 PST 2009


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



More information about the Freeswitch-svn mailing list