]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add print_list gdb macro
authorMathieu Rene <mrene@avgs.ca>
Fri, 20 Mar 2009 19:36:43 +0000 (19:36 +0000)
committerMathieu Rene <mrene@avgs.ca>
Fri, 20 Mar 2009 19:36:43 +0000 (19:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12687 d0543943-73ff-0310-b7d9-9358b9ac24b2

support-d/.gdbinit

index 7722e7f57e752cf71080dd51bc9ec14bc9c0ec5a..1538773b9c9f210898b1ff3ecdff6ef13c945dcc 100644 (file)
@@ -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