Lines Matching refs:module

228 struct module  struct
231 struct module *next; argument
304 struct module *modules; /* list of all compilation units */
2607 char *module = vms_get_module_name (bfd_get_filename (abfd), TRUE); in _bfd_vms_write_emh() local
2608 _bfd_vms_output_counted (recwr, module); in _bfd_vms_write_emh()
2609 free (module); in _bfd_vms_write_emh()
2927 char *module; in alpha_vms_write_exec() local
2931 module = vms_get_module_name (bfd_get_filename (abfd), TRUE); in alpha_vms_write_exec()
2932 len = strlen (module); in alpha_vms_write_exec()
2936 memcpy (eihi->imgnam + 1, module, len); in alpha_vms_write_exec()
2937 free (module); in alpha_vms_write_exec()
3976 static struct module *
3979 struct module *module in new_module() local
3980 = (struct module *) bfd_zalloc (abfd, sizeof (struct module)); in new_module()
3981 module->file_table_count = 16; /* Arbitrary. */ in new_module()
3982 module->file_table in new_module()
3983 = bfd_malloc (module->file_table_count * sizeof (struct fileinfo)); in new_module()
3984 return module; in new_module()
3990 parse_module (bfd *abfd, struct module *module, unsigned char *ptr, in parse_module() argument
4003 module->srec_table = curr_srec; in parse_module()
4006 module->line_table = curr_line; in parse_module()
4022 module->name in parse_module()
4030 vms_debug2 ((3, "module: %s\n", module->name)); in parse_module()
4042 funcinfo->next = module->func_table; in parse_module()
4043 module->func_table = funcinfo; in parse_module()
4050 module->func_table->high = module->func_table->low in parse_module()
4053 if (module->func_table->high > module->high) in parse_module()
4054 module->high = module->func_table->high; in parse_module()
4094 while (fileid >= module->file_table_count) in parse_module()
4096 module->file_table_count *= 2; in parse_module()
4097 module->file_table in parse_module()
4098 = bfd_realloc (module->file_table, in parse_module()
4099 module->file_table_count in parse_module()
4103 module->file_table [fileid].name = filename; in parse_module()
4104 module->file_table [fileid].srec = 1; in parse_module()
4107 fileid, module->file_table [fileid].name)); in parse_module()
4151 curr_srec->srec = module->file_table[data].srec; in parse_module()
4173 module->file_table[curr_srec->sfile].srec = data; in parse_module()
4181 module->file_table[curr_srec->sfile].srec = data; in parse_module()
4422 SET_MODULE_PARSED (module); in parse_module()
4427 static struct module *
4430 struct module *module, *list = NULL; in build_module_list() local
4475 module = new_module (abfd); in build_module_list()
4476 module->modbeg = modbeg; in build_module_list()
4477 module->size = msize; in build_module_list()
4478 module->low = start; in build_module_list()
4479 module->high = start + length; in build_module_list()
4480 module->next = list; in build_module_list()
4481 list = module; in build_module_list()
4499 module = new_module (abfd); in build_module_list()
4500 parse_module (abfd, module, PRIV (dst_section)->contents, -1); in build_module_list()
4501 list = module; in build_module_list()
4511 module_find_nearest_line (bfd *abfd, struct module *module, bfd_vma addr, in module_find_nearest_line() argument
4521 if (! IS_MODULE_PARSED (module)) in module_find_nearest_line()
4523 unsigned int size = module->size; in module_find_nearest_line()
4524 unsigned int modbeg = PRIV (dst_section)->filepos + module->modbeg; in module_find_nearest_line()
4525 unsigned char *buffer = (unsigned char *) bfd_malloc (module->size); in module_find_nearest_line()
4534 parse_module (abfd, module, buffer, size); in module_find_nearest_line()
4539 for (funcinfo = module->func_table; funcinfo; funcinfo = funcinfo->next) in module_find_nearest_line()
4548 for (lineinfo = module->line_table; lineinfo; lineinfo = lineinfo->next) in module_find_nearest_line()
4551 for (srecinfo = module->srec_table; srecinfo; srecinfo = srecinfo->next) in module_find_nearest_line()
4556 *file = module->file_table[srecinfo->sfile].name; in module_find_nearest_line()
4561 *file = module->name; in module_find_nearest_line()
4587 struct module *module; in _bfd_vms_find_nearest_line() local
4610 for (module = PRIV (modules); module; module = module->next) in _bfd_vms_find_nearest_line()
4611 if (addr >= module->low && addr <= module->high) in _bfd_vms_find_nearest_line()
4612 return module_find_nearest_line (abfd, module, addr, file, func, line); in _bfd_vms_find_nearest_line()