# usage: gdb bin/winbindd PID --batch -ex "wbdoms _domain_list" define wbdoms set var $n = $arg0 while $n print *$n set var $n = $n->next end end