mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-05 20:51:51 +00:00
GDB Macros FTW
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11985 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2efc763d87
commit
f8fee30b27
12
scripts/gdbinit
Normal file
12
scripts/gdbinit
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user