for (item = target_stack; item; item = item->next)
for (t = target_stack; t != NULL; t = t->beneath)
target_info (args, from_tty)     char *args;     int from_tty;{  struct target_ops *t;  struct target_stack_item *item;  int has_all_mem = 0;    if (symfile_objfile != NULL)    printf_unfiltered ("Symbols from \"%s\".\n", symfile_objfile->name);#ifdef FILES_INFO_HOOK  if (FILES_INFO_HOOK ())    return;#endif  for (item = target_stack; item; item = item->next)    {      t = item->target_ops;      if (!t->to_has_memory)	continue;      if ((int)(t->to_stratum) <= (int)dummy_stratum)	continue;      if (has_all_mem)	printf_unfiltered("\tWhile running this, GDB does not access memory from...\n");      printf_unfiltered("%s:\n", t->to_longname);      (t->to_files_info)(t);      has_all_mem = t->to_has_all_memory;    }}