[Freeswitch-trunk] [commit] r12350 - freeswitch/trunk/support-d

FreeSWITCH SVN mrene at freeswitch.org
Mon Mar 2 08:11:42 PST 2009


Author: mrene
Date: Mon Mar  2 10:11:42 2009
New Revision: 12350

Log:
New event_dump gdb macro

Modified:
   freeswitch/trunk/support-d/.gdbinit

Modified: freeswitch/trunk/support-d/.gdbinit
==============================================================================
--- freeswitch/trunk/support-d/.gdbinit	(original)
+++ freeswitch/trunk/support-d/.gdbinit	Mon Mar  2 10:11:42 2009
@@ -30,20 +30,6 @@
 Prints the content of a hashtable displaying the key as a string and the value as pointer
 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
 	dont-repeat
@@ -62,19 +48,10 @@
 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
 
-define hash_it_int_x
-	dont-repeat
-	set $i = 0
-	set $x=$arg0->table->first
+define event_dump
+	set $x = $arg0->headers
 	while($x != 0x0)
-		printf "key: %d\n", $x->pKey
-		print (($arg1*)$x->data)->$arg2
-		printf "\n\n"
+		printf "%s = %s\n", $x->name, $x->value
 		set $x = $x->next
-		set $i = $i + 1
-		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
+	end
+end
\ No newline at end of file



More information about the Freeswitch-trunk mailing list