Lines Matching refs:info

603 debug_add_to_namespace (struct debug_handle *info ATTRIBUTE_UNUSED,
638 debug_add_to_current_namespace (struct debug_handle *info, const char *name,
644 if (info->current_unit == NULL
645 || info->current_file == NULL)
651 if (info->current_block != NULL)
652 nsp = &info->current_block->locals;
654 nsp = &info->current_file->globals;
656 return debug_add_to_namespace (info, nsp, name, kind, linkage);
678 struct debug_handle *info = (struct debug_handle *) handle;
694 info->current_file = nfile;
696 if (info->current_unit != NULL)
697 info->current_unit->next = nunit;
700 assert (info->units == NULL);
701 info->units = nunit;
704 info->current_unit = nunit;
706 info->current_function = NULL;
707 info->current_block = NULL;
708 info->current_lineno = NULL;
719 struct debug_handle *info = (struct debug_handle *) handle;
725 if (info->current_unit == NULL)
731 for (f = info->current_unit->files; f != NULL; f = f->next)
737 info->current_file = f;
747 for (pf = &info->current_file->next;
753 info->current_file = f;
771 struct debug_handle *info = (struct debug_handle *) handle;
781 if (info->current_unit == NULL)
800 info->current_function = f;
801 info->current_block = b;
805 n = debug_add_to_namespace (info,
806 &info->current_file->globals,
826 struct debug_handle *info = (struct debug_handle *) handle;
832 if (info->current_unit == NULL
833 || info->current_function == NULL)
847 for (pp = &info->current_function->parameters;
861 struct debug_handle *info = (struct debug_handle *) handle;
863 if (info->current_unit == NULL
864 || info->current_block == NULL
865 || info->current_function == NULL)
871 if (info->current_block->parent != NULL)
877 info->current_block->end = addr;
879 info->current_function = NULL;
880 info->current_block = NULL;
893 struct debug_handle *info = (struct debug_handle *) handle;
898 if (info->current_unit == NULL
899 || info->current_block == NULL)
908 b->parent = info->current_block;
913 for (pb = &info->current_block->children;
919 info->current_block = b;
931 struct debug_handle *info = (struct debug_handle *) handle;
934 if (info->current_unit == NULL
935 || info->current_block == NULL)
941 parent = info->current_block->parent;
948 info->current_block->end = addr;
950 info->current_block = parent;
961 struct debug_handle *info = (struct debug_handle *) handle;
965 if (info->current_unit == NULL)
971 l = info->current_lineno;
972 if (l != NULL && l->file == info->current_file)
996 l->file = info->current_file;
1002 if (info->current_lineno != NULL)
1003 info->current_lineno->next = l;
1005 info->current_unit->linenos = l;
1007 info->current_lineno = l;
1040 struct debug_handle *info = (struct debug_handle *) handle;
1046 n = debug_add_to_current_namespace (info, name, DEBUG_OBJECT_INT_CONSTANT,
1061 struct debug_handle *info = (struct debug_handle *) handle;
1067 n = debug_add_to_current_namespace (info, name, DEBUG_OBJECT_FLOAT_CONSTANT,
1083 struct debug_handle *info = (struct debug_handle *) handle;
1090 n = debug_add_to_current_namespace (info, name, DEBUG_OBJECT_TYPED_CONSTANT,
1125 struct debug_handle *info = (struct debug_handle *) handle;
1134 if (info->current_unit == NULL
1135 || info->current_file == NULL)
1143 nsp = &info->current_file->globals;
1151 if (info->current_block == NULL)
1152 nsp = &info->current_file->globals;
1154 nsp = &info->current_block->locals;
1158 n = debug_add_to_namespace (info, nsp, name, DEBUG_OBJECT_VARIABLE, linkage);
1177 debug_make_type (struct debug_handle *info ATTRIBUTE_UNUSED,
1197 struct debug_handle *info = (struct debug_handle *) handle;
1201 t = debug_make_type (info, DEBUG_KIND_INDIRECT, 0);
1221 struct debug_handle *info = (struct debug_handle *) handle;
1223 return debug_make_type (info, DEBUG_KIND_VOID, 0);
1232 struct debug_handle *info = (struct debug_handle *) handle;
1235 t = debug_make_type (info, DEBUG_KIND_INT, size);
1251 struct debug_handle *info = (struct debug_handle *) handle;
1253 return debug_make_type (info, DEBUG_KIND_FLOAT, size);
1261 struct debug_handle *info = (struct debug_handle *) handle;
1263 return debug_make_type (info, DEBUG_KIND_BOOL, size);
1271 struct debug_handle *info = (struct debug_handle *) handle;
1273 return debug_make_type (info, DEBUG_KIND_COMPLEX, size);
1284 struct debug_handle *info = (struct debug_handle *) handle;
1288 t = debug_make_type (info,
1317 struct debug_handle *info = (struct debug_handle *) handle;
1321 t = debug_make_type (info,
1350 struct debug_handle *info = (struct debug_handle *) handle;
1354 t = debug_make_type (info, DEBUG_KIND_ENUM, 0);
1374 struct debug_handle *info = (struct debug_handle *) handle;
1383 t = debug_make_type (info, DEBUG_KIND_POINTER, 0);
1401 struct debug_handle *info = (struct debug_handle *) handle;
1408 t = debug_make_type (info, DEBUG_KIND_FUNCTION, 0);
1429 struct debug_handle *info = (struct debug_handle *) handle;
1435 t = debug_make_type (info, DEBUG_KIND_REFERENCE, 0);
1450 struct debug_handle *info = (struct debug_handle *) handle;
1457 t = debug_make_type (info, DEBUG_KIND_RANGE, 0);
1484 struct debug_handle *info = (struct debug_handle *) handle;
1491 t = debug_make_type (info, DEBUG_KIND_ARRAY, 0);
1516 struct debug_handle *info = (struct debug_handle *) handle;
1523 t = debug_make_type (info, DEBUG_KIND_SET, 0);
1547 struct debug_handle *info = (struct debug_handle *) handle;
1554 t = debug_make_type (info, DEBUG_KIND_OFFSET, 0);
1578 struct debug_handle *info = (struct debug_handle *) handle;
1585 t = debug_make_type (info, DEBUG_KIND_METHOD, 0);
1607 struct debug_handle *info = (struct debug_handle *) handle;
1613 t = debug_make_type (info, DEBUG_KIND_CONST, 0);
1627 struct debug_handle *info = (struct debug_handle *) handle;
1633 t = debug_make_type (info, DEBUG_KIND_VOLATILE, 0);
1649 struct debug_handle *info = (struct debug_handle *) handle;
1669 t = debug_make_type (info, kind, 0);
1831 struct debug_handle *info = (struct debug_handle *) handle;
1839 if (info->current_unit == NULL
1840 || info->current_file == NULL)
1846 t = debug_make_type (info, DEBUG_KIND_NAMED, 0);
1860 nm = debug_add_to_namespace (info, &info->current_file->globals, name,
1877 struct debug_handle *info = (struct debug_handle *) handle;
1885 if (info->current_file == NULL)
1899 t = debug_make_type (info, DEBUG_KIND_TAGGED, 0);
1913 nm = debug_add_to_namespace (info, &info->current_file->globals, name,
1945 struct debug_handle *info = (struct debug_handle *) handle;
1952 if (info->current_unit == NULL)
1958 for (b = info->current_block; b != NULL; b = b->parent)
1974 for (f = info->current_unit->files; f != NULL; f = f->next)
1999 struct debug_handle *info = (struct debug_handle *) handle;
2005 for (u = info->units; u != NULL; u = u->next)
2313 struct debug_handle *info = (struct debug_handle *) handle;
2320 ++info->mark;
2325 info->base_id = info->class_id;
2329 info->id_list = NULL;
2331 for (u = info->units; u != NULL; u = u->next)
2336 info->current_write_lineno = u->linenos;
2337 info->current_write_lineno_index = 0;
2354 if (! debug_write_name (info, fns, fhandle, n))
2360 if (! debug_write_linenos (info, fns, fhandle, (bfd_vma) -1))
2370 debug_write_name (struct debug_handle *info,
2377 if (! debug_write_type (info, fns, fhandle, n->u.type, n)
2382 if (! debug_write_type (info, fns, fhandle, n->u.tag, n))
2386 if (! debug_write_type (info, fns, fhandle, n->u.variable->type,
2392 return debug_write_function (info, fns, fhandle, n->name,
2399 if (! debug_write_type (info, fns, fhandle, n->u.typed_constant->type,
2418 debug_write_type (struct debug_handle *info,
2431 && (type->u.knamed->name->mark == info->mark
2442 real = debug_get_real_type ((void *) info, type, NULL);
2452 if (real->u.kclass->id <= info->base_id)
2454 if (! debug_set_class_id (info,
2472 name->mark = info->mark;
2490 return debug_write_type (info, fns, fhandle, *type->u.kindirect->slot,
2506 if (type->u.kclass->id <= info->base_id)
2508 if (! debug_set_class_id (info, tag, type))
2512 if (info->mark == type->u.kclass->mark)
2517 assert (type->u.kclass->id > info->base_id);
2521 type->u.kclass->mark = info->mark;
2539 if (! debug_write_type (info, fns, fhandle, f->type,
2549 return debug_write_class_type (info, fns, fhandle, type, tag);
2557 if (! debug_write_type (info, fns, fhandle, type->u.kpointer,
2562 if (! debug_write_type (info, fns, fhandle,
2571 if (! debug_write_type (info, fns, fhandle,
2579 if (! debug_write_type (info, fns, fhandle, type->u.kreference,
2584 if (! debug_write_type (info, fns, fhandle, type->u.krange->type,
2590 if (! debug_write_type (info, fns, fhandle, type->u.karray->element_type,
2592 || ! debug_write_type (info, fns, fhandle,
2600 if (! debug_write_type (info, fns, fhandle, type->u.kset->type,
2605 if (! debug_write_type (info, fns, fhandle, type->u.koffset->base_type,
2607 || ! debug_write_type (info, fns, fhandle,
2613 if (! debug_write_type (info, fns, fhandle,
2622 if (! debug_write_type (info, fns, fhandle,
2629 if (! debug_write_type (info, fns, fhandle,
2639 if (! debug_write_type (info, fns, fhandle, type->u.kconst,
2644 if (! debug_write_type (info, fns, fhandle, type->u.kvolatile,
2649 return debug_write_type (info, fns, fhandle, type->u.knamed->type,
2652 return debug_write_type (info, fns, fhandle, type->u.knamed->type,
2663 debug_write_class_type (struct debug_handle *info,
2678 if (type->u.kclass->id <= info->base_id)
2680 if (! debug_set_class_id (info, tag, type))
2684 if (info->mark == type->u.kclass->mark)
2689 assert (type->u.kclass->id > info->base_id);
2693 type->u.kclass->mark = info->mark;
2699 if (! debug_write_type (info, fns, fhandle, vptrbase,
2721 if (! debug_write_type (info, fns, fhandle, f->type,
2747 if (! debug_write_type (info, fns, fhandle, b->type,
2773 if (! debug_write_type (info, fns, fhandle, v->context,
2777 if (! debug_write_type (info, fns, fhandle, v->type,
2812 debug_write_function (struct debug_handle *info,
2820 if (! debug_write_linenos (info, fns, fhandle, function->blocks->start))
2823 if (! debug_write_type (info, fns, fhandle, function->return_type,
2833 if (! debug_write_type (info, fns, fhandle, p->type,
2841 if (! debug_write_block (info, fns, fhandle, b))
2851 debug_write_block (struct debug_handle *info,
2858 if (! debug_write_linenos (info, fns, fhandle, block->start))
2873 if (! debug_write_name (info, fns, fhandle, n))
2880 if (! debug_write_block (info, fns, fhandle, b))
2884 if (! debug_write_linenos (info, fns, fhandle, block->end))
2899 debug_write_linenos (struct debug_handle *info,
2903 while (info->current_write_lineno != NULL)
2907 l = info->current_write_lineno;
2909 while (info->current_write_lineno_index < DEBUG_LINENO_COUNT)
2911 if (l->linenos[info->current_write_lineno_index]
2915 if (l->addrs[info->current_write_lineno_index] >= address)
2919 l->linenos[info->current_write_lineno_index],
2920 l->addrs[info->current_write_lineno_index]))
2923 ++info->current_write_lineno_index;
2926 info->current_write_lineno = l->next;
2927 info->current_write_lineno_index = 0;
2939 debug_set_class_id (struct debug_handle *info, const char *tag,
2952 if (c->id > info->base_id)
2955 for (l = info->id_list; l != NULL; l = l->next)
2973 if (debug_type_samep (info, l->type, type))
2982 ++info->class_id;
2983 c->id = info->class_id;
2991 l->next = info->id_list;
2992 info->id_list = l;
3001 debug_type_samep (struct debug_handle *info, struct debug_type *t1,
3034 return debug_type_samep (info, t1->u.knamed->type, t2);
3037 return debug_type_samep (info, t1, t2->u.knamed->type);
3061 for (l = info->compare_list; l != NULL; l = l->next)
3069 top.next = info->compare_list;
3070 info->compare_list = &top;
3087 else if (t1->u.kclass->id > info->base_id
3091 ret = debug_class_type_samep (info, t1, t2);
3124 ret = debug_type_samep (info, t1->u.kpointer, t2->u.kpointer);
3129 || ! debug_type_samep (info, t1->u.kfunction->return_type,
3144 if (! debug_type_samep (info, *a1, *a2))
3154 ret = debug_type_samep (info, t1->u.kreference, t2->u.kreference);
3160 && debug_type_samep (info, t1->u.krange->type,
3167 && debug_type_samep (info, t1->u.karray->element_type,
3173 && debug_type_samep (info, t1->u.kset->type, t2->u.kset->type));
3177 ret = (debug_type_samep (info, t1->u.koffset->base_type,
3179 && debug_type_samep (info, t1->u.koffset->target_type,
3185 || ! debug_type_samep (info, t1->u.kmethod->return_type,
3187 || ! debug_type_samep (info, t1->u.kmethod->domain_type,
3202 if (! debug_type_samep (info, *a1, *a2))
3212 ret = debug_type_samep (info, t1->u.kconst, t2->u.kconst);
3216 ret = debug_type_samep (info, t1->u.kvolatile, t2->u.kvolatile);
3222 && debug_type_samep (info, t1->u.knamed->type,
3227 info->compare_list = top.next;
3236 debug_class_type_samep (struct debug_handle *info, struct debug_type *t1,
3282 || ! debug_type_samep (info,
3283 debug_get_real_type ((void *) info,
3285 debug_get_real_type ((void *) info,
3295 if (! debug_type_samep (info, c1->vptrbase, c2->vptrbase))
3314 || ! debug_type_samep (info, b1->type, b2->type))
3356 || ! debug_type_samep (info, v1->type, v2->type))
3360 if (! debug_type_samep (info, v1->context,