Author: mrene Date: Fri Mar 20 14:36:43 2009 New Revision: 12687 Log: Add print_list 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 Fri Mar 20 14:36:43 2009 @@ -59,4 +59,17 @@ document event_dump Usage: event_dump [switch_event_t*] Print an event's headers and values -end \ No newline at end of file +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
participants (1)
-
FreeSWITCH SVN