diff --git a/scripts/gdbinit b/scripts/gdbinit new file mode 100644 index 0000000000..94bbb48c6f --- /dev/null +++ b/scripts/gdbinit @@ -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