Lines Matching refs:info
338 stab_write_symbol (struct stab_write_handle *info, int type, int desc, in stab_write_symbol() argument
350 h = string_hash_lookup (&info->strhash, string, TRUE, TRUE); in stab_write_symbol()
361 strx = info->strings_size; in stab_write_symbol()
363 if (info->last_string == NULL) in stab_write_symbol()
364 info->strings = h; in stab_write_symbol()
366 info->last_string->next = h; in stab_write_symbol()
367 info->last_string = h; in stab_write_symbol()
368 info->strings_size += strlen (string) + 1; in stab_write_symbol()
373 bfd_put_32 (info->abfd, strx, sym); in stab_write_symbol()
374 bfd_put_8 (info->abfd, type, sym + 4); in stab_write_symbol()
375 bfd_put_8 (info->abfd, 0, sym + 5); in stab_write_symbol()
376 bfd_put_16 (info->abfd, desc, sym + 6); in stab_write_symbol()
377 bfd_put_32 (info->abfd, value, sym + 8); in stab_write_symbol()
379 if (info->symbols_size + STAB_SYMBOL_SIZE > info->symbols_alloc) in stab_write_symbol()
381 info->symbols_alloc *= 2; in stab_write_symbol()
382 info->symbols = (bfd_byte *) xrealloc (info->symbols, in stab_write_symbol()
383 info->symbols_alloc); in stab_write_symbol()
386 memcpy (info->symbols + info->symbols_size, sym, STAB_SYMBOL_SIZE); in stab_write_symbol()
388 info->symbols_size += STAB_SYMBOL_SIZE; in stab_write_symbol()
396 stab_push_string (struct stab_write_handle *info, const char *string, in stab_push_string() argument
412 s->next = info->type_stack; in stab_push_string()
413 info->type_stack = s; in stab_push_string()
421 stab_push_defined_type (struct stab_write_handle *info, long tindex, in stab_push_defined_type() argument
427 return stab_push_string (info, buf, tindex, FALSE, size); in stab_push_defined_type()
434 stab_pop_type (struct stab_write_handle *info) in stab_pop_type() argument
439 s = info->type_stack; in stab_pop_type()
442 info->type_stack = s->next; in stab_pop_type()
467 struct stab_write_handle info; in write_stabs_in_sections_debugging_info() local
471 info.abfd = abfd; in write_stabs_in_sections_debugging_info()
473 info.symbols_size = 0; in write_stabs_in_sections_debugging_info()
474 info.symbols_alloc = 500; in write_stabs_in_sections_debugging_info()
475 info.symbols = (bfd_byte *) xmalloc (info.symbols_alloc); in write_stabs_in_sections_debugging_info()
477 info.strings = NULL; in write_stabs_in_sections_debugging_info()
478 info.last_string = NULL; in write_stabs_in_sections_debugging_info()
480 info.strings_size = 1; in write_stabs_in_sections_debugging_info()
482 if (!bfd_hash_table_init (&info.strhash.table, string_hash_newfunc, in write_stabs_in_sections_debugging_info()
484 || !bfd_hash_table_init (&info.typedef_hash.table, string_hash_newfunc, in write_stabs_in_sections_debugging_info()
492 info.type_stack = NULL; in write_stabs_in_sections_debugging_info()
493 info.type_index = 1; in write_stabs_in_sections_debugging_info()
494 memset (&info.type_cache, 0, sizeof info.type_cache); in write_stabs_in_sections_debugging_info()
495 info.so_offset = -1; in write_stabs_in_sections_debugging_info()
496 info.fun_offset = -1; in write_stabs_in_sections_debugging_info()
497 info.last_text_address = 0; in write_stabs_in_sections_debugging_info()
498 info.nesting = 0; in write_stabs_in_sections_debugging_info()
499 info.fnaddr = 0; in write_stabs_in_sections_debugging_info()
500 info.pending_lbrac = (bfd_vma) -1; in write_stabs_in_sections_debugging_info()
503 if (! stab_write_symbol (&info, 0, 0, 0, (const char *) NULL)) in write_stabs_in_sections_debugging_info()
507 info.so_offset = info.symbols_size; in write_stabs_in_sections_debugging_info()
508 if (! stab_write_symbol (&info, N_SO, 0, 0, bfd_get_filename (abfd))) in write_stabs_in_sections_debugging_info()
511 if (! debug_write (dhandle, &stab_fns, (void *) &info)) in write_stabs_in_sections_debugging_info()
514 assert (info.pending_lbrac == (bfd_vma) -1); in write_stabs_in_sections_debugging_info()
517 if (! stab_write_symbol (&info, N_SO, 0, info.last_text_address, in write_stabs_in_sections_debugging_info()
522 bfd_put_32 (abfd, info.strings_size, info.symbols + 8); in write_stabs_in_sections_debugging_info()
524 *psyms = info.symbols; in write_stabs_in_sections_debugging_info()
525 *psymsize = info.symbols_size; in write_stabs_in_sections_debugging_info()
527 *pstringsize = info.strings_size; in write_stabs_in_sections_debugging_info()
528 *pstrings = (bfd_byte *) xmalloc (info.strings_size); in write_stabs_in_sections_debugging_info()
532 for (h = info.strings; h != NULL; h = h->next) in write_stabs_in_sections_debugging_info()
546 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_start_compilation_unit() local
553 info->lineno_filename = filename; in stab_start_compilation_unit()
555 return stab_write_symbol (info, N_SOL, 0, 0, filename); in stab_start_compilation_unit()
563 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_start_source() local
569 info->lineno_filename = filename; in stab_start_source()
571 return stab_write_symbol (info, N_SOL, 0, 0, filename); in stab_start_source()
580 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_empty_type() local
585 if (info->type_cache.void_type != 0) in stab_empty_type()
586 return stab_push_defined_type (info, info->type_cache.void_type, 0); in stab_empty_type()
592 tindex = info->type_index; in stab_empty_type()
593 ++info->type_index; in stab_empty_type()
597 return stab_push_string (info, buf, tindex, FALSE, 0); in stab_empty_type()
606 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_void_type() local
608 if (info->type_cache.void_type != 0) in stab_void_type()
609 return stab_push_defined_type (info, info->type_cache.void_type, 0); in stab_void_type()
615 tindex = info->type_index; in stab_void_type()
616 ++info->type_index; in stab_void_type()
618 info->type_cache.void_type = tindex; in stab_void_type()
622 return stab_push_string (info, buf, tindex, TRUE, 0); in stab_void_type()
631 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_int_type() local
641 cache = info->type_cache.signed_integer_types; in stab_int_type()
643 cache = info->type_cache.unsigned_integer_types; in stab_int_type()
646 return stab_push_defined_type (info, cache[size - 1], size); in stab_int_type()
652 tindex = info->type_index; in stab_int_type()
653 ++info->type_index; in stab_int_type()
682 return stab_push_string (info, buf, tindex, TRUE, size); in stab_int_type()
691 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_float_type() local
694 && size - 1 < (sizeof info->type_cache.float_types in stab_float_type()
695 / sizeof info->type_cache.float_types[0]) in stab_float_type()
696 && info->type_cache.float_types[size - 1] != 0) in stab_float_type()
697 return stab_push_defined_type (info, in stab_float_type()
698 info->type_cache.float_types[size - 1], in stab_float_type()
707 if (! stab_int_type (info, 4, FALSE)) in stab_float_type()
709 int_type = stab_pop_type (info); in stab_float_type()
711 tindex = info->type_index; in stab_float_type()
712 ++info->type_index; in stab_float_type()
715 && size - 1 < (sizeof info->type_cache.float_types in stab_float_type()
716 / sizeof info->type_cache.float_types[0])) in stab_float_type()
717 info->type_cache.float_types[size - 1] = tindex; in stab_float_type()
723 return stab_push_string (info, buf, tindex, TRUE, size); in stab_float_type()
732 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_complex_type() local
736 tindex = info->type_index; in stab_complex_type()
737 ++info->type_index; in stab_complex_type()
741 return stab_push_string (info, buf, tindex, TRUE, size * 2); in stab_complex_type()
750 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_bool_type() local
773 return stab_push_defined_type (info, tindex, size); in stab_bool_type()
782 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_enum_type() local
796 if (! stab_push_string (info, buf, 0, FALSE, 4)) in stab_enum_type()
814 tindex = info->type_index; in stab_enum_type()
815 ++info->type_index; in stab_enum_type()
826 if (! stab_push_string (info, buf, 0, FALSE, 4)) in stab_enum_type()
832 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf) in stab_enum_type()
833 || ! stab_push_defined_type (info, tindex, 4)) in stab_enum_type()
846 stab_modify_type (struct stab_write_handle *info, int mod, in stab_modify_type() argument
853 assert (info->type_stack != NULL); in stab_modify_type()
854 targindex = info->type_stack->index; in stab_modify_type()
864 definition = info->type_stack->definition; in stab_modify_type()
865 s = stab_pop_type (info); in stab_modify_type()
869 if (! stab_push_string (info, buf, 0, definition, size)) in stab_modify_type()
891 if (tindex != 0 && ! info->type_stack->definition) in stab_modify_type()
899 free (stab_pop_type (info)); in stab_modify_type()
900 if (! stab_push_defined_type (info, tindex, size)) in stab_modify_type()
905 tindex = info->type_index; in stab_modify_type()
906 ++info->type_index; in stab_modify_type()
908 s = stab_pop_type (info); in stab_modify_type()
915 if (! stab_push_string (info, buf, tindex, TRUE, size)) in stab_modify_type()
930 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_pointer_type() local
933 return stab_modify_type (info, '*', 4, &info->type_cache.pointer_types, in stab_pointer_type()
934 &info->type_cache.pointer_types_alloc); in stab_pointer_type()
943 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_function_type() local
951 if (! info->type_stack->definition) in stab_function_type()
952 free (stab_pop_type (info)); in stab_function_type()
957 s = stab_pop_type (info); in stab_function_type()
963 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf)) in stab_function_type()
970 return stab_modify_type (info, 'f', 0, &info->type_cache.function_types, in stab_function_type()
971 &info->type_cache.function_types_alloc); in stab_function_type()
979 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_reference_type() local
982 return stab_modify_type (info, '&', 4, &info->type_cache.reference_types, in stab_reference_type()
983 &info->type_cache.reference_types_alloc); in stab_reference_type()
991 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_range_type() local
996 definition = info->type_stack->definition; in stab_range_type()
997 size = info->type_stack->size; in stab_range_type()
999 s = stab_pop_type (info); in stab_range_type()
1004 if (! stab_push_string (info, buf, 0, definition, size)) in stab_range_type()
1018 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_array_type() local
1025 definition = info->type_stack->definition; in stab_array_type()
1026 range = stab_pop_type (info); in stab_array_type()
1028 definition = definition || info->type_stack->definition; in stab_array_type()
1029 element_size = info->type_stack->size; in stab_array_type()
1030 element = stab_pop_type (info); in stab_array_type()
1043 tindex = info->type_index; in stab_array_type()
1044 ++info->type_index; in stab_array_type()
1058 if (! stab_push_string (info, buf, tindex, definition, size)) in stab_array_type()
1071 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_set_type() local
1076 definition = info->type_stack->definition; in stab_set_type()
1078 s = stab_pop_type (info); in stab_set_type()
1090 tindex = info->type_index; in stab_set_type()
1091 ++info->type_index; in stab_set_type()
1099 if (! stab_push_string (info, buf, tindex, definition, 0)) in stab_set_type()
1112 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_offset_type() local
1116 definition = info->type_stack->definition; in stab_offset_type()
1117 target = stab_pop_type (info); in stab_offset_type()
1119 definition = definition || info->type_stack->definition; in stab_offset_type()
1120 base = stab_pop_type (info); in stab_offset_type()
1127 if (! stab_push_string (info, buf, 0, definition, 0)) in stab_offset_type()
1141 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_method_type() local
1160 definition = info->type_stack->definition; in stab_method_type()
1161 domain = stab_pop_type (info); in stab_method_type()
1180 definition = definition || info->type_stack->definition; in stab_method_type()
1181 args[0] = stab_pop_type (info); in stab_method_type()
1190 definition = definition || info->type_stack->definition; in stab_method_type()
1191 args[i] = stab_pop_type (info); in stab_method_type()
1197 definition = definition || info->type_stack->definition; in stab_method_type()
1198 args[argcount] = stab_pop_type (info); in stab_method_type()
1203 definition = definition || info->type_stack->definition; in stab_method_type()
1204 return_type = stab_pop_type (info); in stab_method_type()
1226 if (! stab_push_string (info, buf, 0, definition, 0)) in stab_method_type()
1239 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_const_type() local
1241 return stab_modify_type (info, 'k', info->type_stack->size, in stab_const_type()
1250 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_volatile_type() local
1252 return stab_modify_type (info, 'B', info->type_stack->size, in stab_volatile_type()
1260 stab_get_struct_index (struct stab_write_handle *info, const char *tag, in stab_get_struct_index() argument
1264 if (id >= info->type_cache.struct_types_alloc) in stab_get_struct_index()
1268 alloc = info->type_cache.struct_types_alloc; in stab_get_struct_index()
1273 info->type_cache.struct_types = in stab_get_struct_index()
1274 (struct stab_tag *) xrealloc (info->type_cache.struct_types, in stab_get_struct_index()
1276 memset ((info->type_cache.struct_types in stab_get_struct_index()
1277 + info->type_cache.struct_types_alloc), in stab_get_struct_index()
1279 ((alloc - info->type_cache.struct_types_alloc) in stab_get_struct_index()
1281 info->type_cache.struct_types_alloc = alloc; in stab_get_struct_index()
1284 if (info->type_cache.struct_types[id].index == 0) in stab_get_struct_index()
1286 info->type_cache.struct_types[id].index = info->type_index; in stab_get_struct_index()
1287 ++info->type_index; in stab_get_struct_index()
1288 info->type_cache.struct_types[id].tag = tag; in stab_get_struct_index()
1289 info->type_cache.struct_types[id].kind = kind; in stab_get_struct_index()
1295 info->type_cache.struct_types[id].kind = kind; in stab_get_struct_index()
1296 info->type_cache.struct_types[id].size = *psize; in stab_get_struct_index()
1299 *psize = info->type_cache.struct_types[id].size; in stab_get_struct_index()
1301 return info->type_cache.struct_types[id].index; in stab_get_struct_index()
1311 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_start_struct_type() local
1324 tindex = stab_get_struct_index (info, tag, id, DEBUG_KIND_ILLEGAL, in stab_start_struct_type()
1336 if (! stab_push_string (info, buf, tindex, definition, size)) in stab_start_struct_type()
1339 info->type_stack->fields = (char *) xmalloc (1); in stab_start_struct_type()
1340 info->type_stack->fields[0] = '\0'; in stab_start_struct_type()
1351 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_struct_field() local
1357 definition = info->type_stack->definition; in stab_struct_field()
1358 size = info->type_stack->size; in stab_struct_field()
1359 s = stab_pop_type (info); in stab_struct_field()
1364 assert (info->type_stack->fields != NULL); in stab_struct_field()
1365 n = (char *) xmalloc (strlen (info->type_stack->fields) in stab_struct_field()
1393 bfd_get_filename (info->abfd), name); in stab_struct_field()
1396 sprintf (n, "%s%s:%s%s,%ld,%ld;", info->type_stack->fields, name, vis, s, in stab_struct_field()
1399 free (info->type_stack->fields); in stab_struct_field()
1400 info->type_stack->fields = n; in stab_struct_field()
1403 info->type_stack->definition = TRUE; in stab_struct_field()
1413 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_end_struct_type() local
1419 assert (info->type_stack != NULL && info->type_stack->fields != NULL); in stab_end_struct_type()
1421 definition = info->type_stack->definition; in stab_end_struct_type()
1422 tindex = info->type_stack->index; in stab_end_struct_type()
1423 size = info->type_stack->size; in stab_end_struct_type()
1424 fields = info->type_stack->fields; in stab_end_struct_type()
1425 first = stab_pop_type (info); in stab_end_struct_type()
1432 if (! stab_push_string (info, buf, tindex, definition, size)) in stab_end_struct_type()
1447 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_start_class_type() local
1453 definition = info->type_stack->definition; in stab_start_class_type()
1454 vstring = stab_pop_type (info); in stab_start_class_type()
1466 assert (info->type_stack->index > 0); in stab_start_class_type()
1468 sprintf (vtable, "~%%%ld", info->type_stack->index); in stab_start_class_type()
1477 info->type_stack->definition = TRUE; in stab_start_class_type()
1479 info->type_stack->vtable = vtable; in stab_start_class_type()
1491 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_class_static_member() local
1496 definition = info->type_stack->definition; in stab_class_static_member()
1497 s = stab_pop_type (info); in stab_class_static_member()
1502 assert (info->type_stack->fields != NULL); in stab_class_static_member()
1503 n = (char *) xmalloc (strlen (info->type_stack->fields) in stab_class_static_member()
1527 sprintf (n, "%s%s:%s%s:%s;", info->type_stack->fields, name, vis, s, in stab_class_static_member()
1530 free (info->type_stack->fields); in stab_class_static_member()
1531 info->type_stack->fields = n; in stab_class_static_member()
1534 info->type_stack->definition = TRUE; in stab_class_static_member()
1545 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_class_baseclass() local
1552 definition = info->type_stack->definition; in stab_class_baseclass()
1553 s = stab_pop_type (info); in stab_class_baseclass()
1582 assert (info->type_stack != NULL && info->type_stack->fields != NULL); in stab_class_baseclass()
1584 if (info->type_stack->baseclasses == NULL) in stab_class_baseclass()
1589 while (info->type_stack->baseclasses[c] != NULL) in stab_class_baseclass()
1593 baseclasses = (char **) xrealloc (info->type_stack->baseclasses, in stab_class_baseclass()
1598 info->type_stack->baseclasses = baseclasses; in stab_class_baseclass()
1601 info->type_stack->definition = TRUE; in stab_class_baseclass()
1611 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_class_start_method() local
1614 assert (info->type_stack != NULL && info->type_stack->fields != NULL); in stab_class_start_method()
1616 if (info->type_stack->methods == NULL) in stab_class_start_method()
1623 m = (char *) xrealloc (info->type_stack->methods, in stab_class_start_method()
1624 (strlen (info->type_stack->methods) in stab_class_start_method()
1631 info->type_stack->methods = m; in stab_class_start_method()
1639 stab_class_method_var (struct stab_write_handle *info, const char *physname, in stab_class_method_var() argument
1650 definition = info->type_stack->definition; in stab_class_method_var()
1651 type = stab_pop_type (info); in stab_class_method_var()
1655 definition = definition || info->type_stack->definition; in stab_class_method_var()
1656 context = stab_pop_type (info); in stab_class_method_var()
1659 assert (info->type_stack != NULL && info->type_stack->methods != NULL); in stab_class_method_var()
1701 info->type_stack->methods = in stab_class_method_var()
1702 (char *) xrealloc (info->type_stack->methods, in stab_class_method_var()
1703 (strlen (info->type_stack->methods) in stab_class_method_var()
1709 sprintf (info->type_stack->methods + strlen (info->type_stack->methods), in stab_class_method_var()
1715 sprintf (info->type_stack->methods + strlen (info->type_stack->methods), in stab_class_method_var()
1721 info->type_stack->definition = TRUE; in stab_class_method_var()
1734 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_class_method_variant() local
1736 return stab_class_method_var (info, physname, visibility, FALSE, constp, in stab_class_method_variant()
1747 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_class_static_method_variant() local
1749 return stab_class_method_var (info, physname, visibility, TRUE, constp, in stab_class_static_method_variant()
1758 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_class_end_method() local
1760 assert (info->type_stack != NULL && info->type_stack->methods != NULL); in stab_class_end_method()
1764 strcat (info->type_stack->methods, ";"); in stab_class_end_method()
1774 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_end_class_type() local
1779 assert (info->type_stack != NULL && info->type_stack->fields != NULL); in stab_end_class_type()
1783 len = (strlen (info->type_stack->string) in stab_end_class_type()
1784 + strlen (info->type_stack->fields) in stab_end_class_type()
1786 if (info->type_stack->baseclasses != NULL) in stab_end_class_type()
1789 for (i = 0; info->type_stack->baseclasses[i] != NULL; i++) in stab_end_class_type()
1790 len += strlen (info->type_stack->baseclasses[i]); in stab_end_class_type()
1792 if (info->type_stack->methods != NULL) in stab_end_class_type()
1793 len += strlen (info->type_stack->methods); in stab_end_class_type()
1794 if (info->type_stack->vtable != NULL) in stab_end_class_type()
1795 len += strlen (info->type_stack->vtable); in stab_end_class_type()
1801 strcpy (buf, info->type_stack->string); in stab_end_class_type()
1803 if (info->type_stack->baseclasses != NULL) in stab_end_class_type()
1806 for (i = 0; info->type_stack->baseclasses[i] != NULL; i++) in stab_end_class_type()
1808 strcat (buf, info->type_stack->baseclasses[i]); in stab_end_class_type()
1809 free (info->type_stack->baseclasses[i]); in stab_end_class_type()
1811 free (info->type_stack->baseclasses); in stab_end_class_type()
1812 info->type_stack->baseclasses = NULL; in stab_end_class_type()
1815 strcat (buf, info->type_stack->fields); in stab_end_class_type()
1816 free (info->type_stack->fields); in stab_end_class_type()
1817 info->type_stack->fields = NULL; in stab_end_class_type()
1819 if (info->type_stack->methods != NULL) in stab_end_class_type()
1821 strcat (buf, info->type_stack->methods); in stab_end_class_type()
1822 free (info->type_stack->methods); in stab_end_class_type()
1823 info->type_stack->methods = NULL; in stab_end_class_type()
1828 if (info->type_stack->vtable != NULL) in stab_end_class_type()
1830 strcat (buf, info->type_stack->vtable); in stab_end_class_type()
1831 free (info->type_stack->vtable); in stab_end_class_type()
1832 info->type_stack->vtable = NULL; in stab_end_class_type()
1837 free (info->type_stack->string); in stab_end_class_type()
1838 info->type_stack->string = buf; in stab_end_class_type()
1848 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_typedef_type() local
1851 h = string_hash_lookup (&info->typedef_hash, name, FALSE, FALSE); in stab_typedef_type()
1854 return stab_push_defined_type (info, h->index, h->size); in stab_typedef_type()
1863 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_tag_type() local
1867 tindex = stab_get_struct_index (info, name, id, kind, &size); in stab_tag_type()
1871 return stab_push_defined_type (info, tindex, size); in stab_tag_type()
1879 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_typdef() local
1885 tindex = info->type_stack->index; in stab_typdef()
1886 size = info->type_stack->size; in stab_typdef()
1887 s = stab_pop_type (info); in stab_typdef()
1895 tindex = info->type_index; in stab_typdef()
1896 ++info->type_index; in stab_typdef()
1902 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf)) in stab_typdef()
1907 h = string_hash_lookup (&info->typedef_hash, name, TRUE, FALSE); in stab_typdef()
1928 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_tag() local
1931 s = stab_pop_type (info); in stab_tag()
1938 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf)) in stab_tag()
1951 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_int_constant() local
1957 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf)) in stab_int_constant()
1970 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_float_constant() local
1976 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf)) in stab_float_constant()
1989 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_typed_constant() local
1992 s = stab_pop_type (info); in stab_typed_constant()
1998 if (! stab_write_symbol (info, N_LSYM, 0, 0, buf)) in stab_typed_constant()
2012 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_variable() local
2017 s = stab_pop_type (info); in stab_variable()
2049 tindex = info->type_index; in stab_variable()
2050 ++info->type_index; in stab_variable()
2068 if (! stab_write_symbol (info, stab_type, 0, val, buf)) in stab_variable()
2081 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_start_function() local
2084 assert (info->nesting == 0 && info->fun_offset == -1); in stab_start_function()
2086 rettype = stab_pop_type (info); in stab_start_function()
2094 info->fun_offset = info->symbols_size; in stab_start_function()
2096 if (! stab_write_symbol (info, N_FUN, 0, 0, buf)) in stab_start_function()
2109 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_function_parameter() local
2114 s = stab_pop_type (info); in stab_function_parameter()
2146 if (! stab_write_symbol (info, stab_type, 0, val, buf)) in stab_function_parameter()
2159 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_start_block() local
2164 if (info->so_offset != -1) in stab_start_block()
2166 bfd_put_32 (info->abfd, addr, info->symbols + info->so_offset + 8); in stab_start_block()
2167 info->so_offset = -1; in stab_start_block()
2170 if (info->fun_offset != -1) in stab_start_block()
2172 bfd_put_32 (info->abfd, addr, info->symbols + info->fun_offset + 8); in stab_start_block()
2173 info->fun_offset = -1; in stab_start_block()
2176 ++info->nesting; in stab_start_block()
2182 if (info->nesting == 1) in stab_start_block()
2184 info->fnaddr = addr; in stab_start_block()
2193 if (info->pending_lbrac != (bfd_vma) -1) in stab_start_block()
2195 if (! stab_write_symbol (info, N_LBRAC, 0, info->pending_lbrac, in stab_start_block()
2202 info->pending_lbrac = addr - info->fnaddr; in stab_start_block()
2212 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_end_block() local
2214 if (addr > info->last_text_address) in stab_end_block()
2215 info->last_text_address = addr; in stab_end_block()
2218 if (info->pending_lbrac != (bfd_vma) -1) in stab_end_block()
2220 if (! stab_write_symbol (info, N_LBRAC, 0, info->pending_lbrac, in stab_end_block()
2223 info->pending_lbrac = (bfd_vma) -1; in stab_end_block()
2226 assert (info->nesting > 0); in stab_end_block()
2228 --info->nesting; in stab_end_block()
2231 if (info->nesting == 0) in stab_end_block()
2234 return stab_write_symbol (info, N_RBRAC, 0, addr - info->fnaddr, in stab_end_block()
2251 struct stab_write_handle *info = (struct stab_write_handle *) p; in stab_lineno() local
2253 assert (info->lineno_filename != NULL); in stab_lineno()
2255 if (addr > info->last_text_address) in stab_lineno()
2256 info->last_text_address = addr; in stab_lineno()
2258 if (filename_cmp (file, info->lineno_filename) != 0) in stab_lineno()
2260 if (! stab_write_symbol (info, N_SOL, 0, addr, file)) in stab_lineno()
2262 info->lineno_filename = file; in stab_lineno()
2265 return stab_write_symbol (info, N_SLINE, lineno, addr - info->fnaddr, in stab_lineno()