printf("[functions]\n");
f = setFirstItem(functions);
i = 0;
- for (;;) {
- if (f == NULL)
- break;
+ while (f != NULL) {
if (our_verbose) {
printf(" %d) sym:%p, fname:%s, modName:%s, mod:%p\n", i,
f->sym, f->sym->name, f->modName, f->mod);
f->cfpoints, f->afpoints, f->laddr, f->lline);
}
else {
- printf("<%s>", f->modName);
+ printf("<%s>", f->sym->name);
}
++i;
f = setNextItem(functions);
}
/*-----------------------------------------------------------------
- cmdListModules - list functions.
+ cmdListModules - list modules.
|-----------------------------------------------------------------*/
int cmdListModules (char *s, context *cctxt)
{