On Sunday July 17, dstrang@xxxxxxxxxxxxxx wrote: > I'm not real good with GDB... but I'm giving it a shot. > > (gdb) run -a /dev/md0 /dev/sdaa > Starting program: /sbin/mdadm -a /dev/md0 /dev/sdaa > warning: Unable to find dynamic linker breakpoint function. > GDB will be unable to debug shared library initializers > and track explicitly loaded dynamic code. > > Breakpoint 1, Manage_subdevs (devname=0xbfe75e5f "/dev/md0", fd=7, > devlist=0x8067018) at Manage.c:174 > 174 void *dsuper = NULL; > (gdb) c At this point you need to use 'n' for 'next', to step through the code one statement at a time. When you see: 176 if (ioctl(fd, GET_ARRAY_INFO, &array)) { enter 'n' again, to execute that, then print array to print the 'array' structure. Then continue with 'n' repeatedly. NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html