Add print_list gdb macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12687 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-20 19:36:43 +00:00
parent e7affeb655
commit fa37aef50f
1 changed files with 14 additions and 1 deletions

View File

@ -59,4 +59,17 @@ end
document event_dump
Usage: event_dump [switch_event_t*]
Print an event's headers and values
end
end
define print_list
dont-repeat
set $x = $arg0
while ($x != 0x0)
print *$x
set $x = $x->next
end
end
document print_list
Usage print_list [symbol]
Prints all the remaining elements of a linked list
end