From: Mathieu Rene Date: Fri, 20 Mar 2009 19:36:43 +0000 (+0000) Subject: Add print_list gdb macro X-Git-Tag: v1.0.4~1457 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa37aef50fe952d53c8a467a49637537ac61f588;p=thirdparty%2Ffreeswitch.git Add print_list gdb macro git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12687 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/support-d/.gdbinit b/support-d/.gdbinit index 7722e7f57e..1538773b9c 100644 --- a/support-d/.gdbinit +++ b/support-d/.gdbinit @@ -59,4 +59,17 @@ end 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