From b08b548b482b8bab0b0a19cd1e9fd060695ed2a9 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Mon, 2 Mar 2009 16:11:42 +0000 Subject: [PATCH] New event_dump gdb macro git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12350 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- support-d/.gdbinit | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/support-d/.gdbinit b/support-d/.gdbinit index 1ba4aca3b6..52ed0ee9ef 100644 --- a/support-d/.gdbinit +++ b/support-d/.gdbinit @@ -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 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 @@ 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 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