mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-02 14:48:22 +00:00
New event_dump gdb macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12350 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2e1680d2df
commit
b08b548b48
@ -30,20 +30,6 @@ Usage: hash_it_str [hashtable]
|
|||||||
Prints the content of a hashtable displaying the key as a string and the value as pointer
|
Prints the content of a hashtable displaying the key as a string and the value as pointer
|
||||||
end
|
end
|
||||||
|
|
||||||
define hash_it_int
|
|
||||||
dont-repeat
|
|
||||||
set $i = 0
|
|
||||||
set $x=$arg0->table->first
|
|
||||||
while($x != 0x0)
|
|
||||||
printf "key: %d valueptr: %p\n", $x->pKey, $x->data
|
|
||||||
set $x = $x->next
|
|
||||||
set $i = $i + 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
document hash_it_int
|
|
||||||
Usage: hash_it_int [hashtable]
|
|
||||||
Prints the content of a hashtable displaying the key as an int and the value as pointer
|
|
||||||
end
|
|
||||||
|
|
||||||
define hash_it_str_x
|
define hash_it_str_x
|
||||||
dont-repeat
|
dont-repeat
|
||||||
@ -62,19 +48,10 @@ Usage: hash_it_str_x [hashtable] [value_type] [member]
|
|||||||
Prints the content of a hashtable displaying the key as a string and a specific member of the value struct. Args: hashtable value_type member
|
Prints the content of a hashtable displaying the key as a string and a specific member of the value struct. Args: hashtable value_type member
|
||||||
end
|
end
|
||||||
|
|
||||||
define hash_it_int_x
|
define event_dump
|
||||||
dont-repeat
|
set $x = $arg0->headers
|
||||||
set $i = 0
|
|
||||||
set $x=$arg0->table->first
|
|
||||||
while($x != 0x0)
|
while($x != 0x0)
|
||||||
printf "key: %d\n", $x->pKey
|
printf "%s = %s\n", $x->name, $x->value
|
||||||
print (($arg1*)$x->data)->$arg2
|
|
||||||
printf "\n\n"
|
|
||||||
set $x = $x->next
|
set $x = $x->next
|
||||||
set $i = $i + 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
document hash_it_int_x
|
|
||||||
Usage: hash_it_int_x [hashtable] [value_type] [member]
|
|
||||||
Prints the content of a hashtable displaying the key as a string and a specific member of the value struct.
|
|
||||||
end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user