In tc_x86_regname_to_dw2regnum: regnames_count = sizeof (regnames_32); for (regnum = 0; regnum < regnames_count; regnum++) if (strcmp (regname, regnames[regnum]) == 0) return regnum; There's a missing '/ sizeof (regnames[0])' there... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer