Searched defs:cu (Results 1 - 25 of 47) sorted by relevance

12

/external/elfutils/libdwfl/
H A Ddwfl_cumodule.c55 struct dwfl_cu *cu = (struct dwfl_cu *) cudie; local
56 return cu->mod;
H A Ddwfl_line_comp_dir.c59 struct dwfl_cu *cu = dwfl_linecu (line); local
61 return INTUSE(dwarf_formstring) (INTUSE(dwarf_attr) (&cu->die,
H A Ddwfl_linecu.c60 struct dwfl_cu *cu = dwfl_linecu_inline (line); local
61 return &cu->die;
H A Dlines.c55 __libdwfl_cu_getsrclines (struct dwfl_cu *cu) argument
57 if (cu->lines == NULL)
61 if (INTUSE(dwarf_getsrclines) (&cu->die, &lines, &nlines) != 0)
64 cu->lines = malloc (offsetof (struct Dwfl_Lines, idx[nlines]));
65 if (cu->lines == NULL)
67 cu->lines->cu = cu;
69 cu->lines->idx[i].idx = i;
H A Ddwfl_getsrclines.c55 struct dwfl_cu *cu = (struct dwfl_cu *) cudie; local
57 if (cu->lines == NULL)
59 Dwfl_Error error = __libdwfl_cu_getsrclines (cu);
67 *nlines = cu->die.cu->lines->nlines;
H A Ddwfl_onesrcline.c55 struct dwfl_cu *cu = (struct dwfl_cu *) cudie; local
60 if (cu->lines == NULL)
62 Dwfl_Error error = __libdwfl_cu_getsrclines (cu);
70 if (idx >= cu->die.cu->lines->nlines)
76 return &cu->lines->idx[idx];
H A Ddwfl_module_addrdie.c58 struct dwfl_cu *cu; local
59 Dwfl_Error error = __libdwfl_addrcu (mod, addr, &cu);
61 return &cu->die;
H A Ddwfl_module_nextcu.c58 struct dwfl_cu *cu; local
59 Dwfl_Error error = __libdwfl_nextcu (mod, (struct dwfl_cu *) lastcu, &cu);
61 return &cu->die; /* Same as a cast, so ok for null too. */
H A Ddwfl_nextcu.c58 struct dwfl_cu *cu = (struct dwfl_cu *) lastcu; local
61 if (cu == NULL)
67 mod = cu->mod;
72 error = __libdwfl_nextcu (mod, cu, &cu);
76 if (cu != NULL)
79 return &cu->die;
H A Ddwfl_lineinfo.c60 struct dwfl_cu *cu = dwfl_linecu (line); local
61 const Dwarf_Line *info = &cu->die.cu->lines->info[line->idx];
64 *addr = info->addr + cu->mod->debug.bias;
H A Ddwfl_module_getsrc.c60 struct dwfl_cu *cu; local
61 Dwfl_Error error = __libdwfl_addrcu (mod, addr, &cu);
63 error = __libdwfl_cu_getsrclines (cu);
70 size_t l = 0, u = cu->die.cu->lines->nlines;
74 if (addr < cu->die.cu->lines->info[idx].addr)
76 else if (addr > cu->die.cu->lines->info[idx].addr)
79 return &cu
[all...]
H A Ddwfl_module.c55 free_cu (struct dwfl_cu *cu) argument
57 if (cu->lines != NULL)
58 free (cu->lines);
59 free (cu);
87 if (mod->cu != NULL)
90 free_cu (mod->cu[i]);
91 free (mod->cu);
H A Ddwfl_module_getsrc_file.c75 struct dwfl_cu *cu = NULL; local
77 while ((error = __libdwfl_nextcu (mod, cu, &cu)) == DWFL_E_NOERROR
78 && cu != NULL
79 && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
87 return &dwfl_linecu (line)->die.cu->lines->info[line->idx];
99 for (size_t cnt = 0; cnt < cu->die.cu->lines->nlines; ++cnt)
101 Dwarf_Line *line = &cu->die.cu
[all...]
H A Dcu.c95 aranges[naranges].cu = NULL;
153 struct dwfl_cu *cu = arg; local
154 if (cu == (void *) -1l)
157 assert (cu->mod->lazycu == 0);
173 cudie_offset (const struct dwfl_cu *cu) argument
175 return cu->die.cu->start + 3 * cu->die.cu->offset_size - 4 + 3;
190 key.die.cu
212 struct dwfl_cu *cu = malloc (sizeof *cu); local
252 __libdwfl_nextcu(Dwfl_Module *mod, struct dwfl_cu *lastcu, struct dwfl_cu **cu) argument
301 arangecu(Dwfl_Module *mod, struct dwfl_arange *arange, struct dwfl_cu **cu) argument
319 __libdwfl_addrcu(Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_cu **cu) argument
[all...]
/external/elfutils/libdw/
H A Ddwarf_decl_file.c78 struct Dwarf_CU *cu = die->cu; local
79 if (cu->lines == NULL)
86 (void) INTUSE(dwarf_getsrclines) (&CUDIE (cu), &lines, &nlines);
87 assert (cu->lines != NULL);
90 if (cu->lines == (void *) -1l)
98 assert (cu->files != NULL && cu->files != (void *) -1l);
100 if (idx >= cu->files->nfiles)
106 return cu
[all...]
H A Ddwarf_getscopes_die.c89 struct Dwarf_Die_Chain cu = { .die = CUDIE (die->cu), .parent = NULL }; local
91 int result = __libdw_visit_scopes (1, &cu, &scope_visitor, NULL, &info);
H A Ddwarf_getsrcfiles.c70 struct Dwarf_CU *const cu = cudie->cu; local
71 if (cu->lines == NULL)
80 else if (cu->files != (void *) -1l)
86 assert (cu->files != NULL && cu->files != (void *) -1l);
87 *files = cu->files;
89 *nfiles = cu->files->nfiles;
H A Ddwarf_tag.c60 __libdw_findabbrev (struct Dwarf_CU *cu, unsigned int code) argument
65 abb = Dwarf_Abbrev_Hash_find (&cu->abbrev_hash, code, NULL);
67 while (cu->last_abbrev_offset != (size_t) -1l)
73 abb = __libdw_getabbrev (cu->dbg, cu, cu->last_abbrev_offset, &length,
78 cu->last_abbrev_offset = (size_t) -1l;
82 cu->last_abbrev_offset += length;
106 die->abbrev = __libdw_findabbrev (die->cu, u128);
H A Dlibdw_form.c63 __libdw_form_val_len (Dwarf *dbg, struct Dwarf_CU *cu, unsigned int form, argument
73 result = cu->address_size;
77 result = cu->version == 2 ? cu->address_size : cu->offset_size;
81 result = cu->offset_size;
139 result = __libdw_form_val_len (dbg, cu, u128, valp);
H A Ddwarf_func_inline.c119 struct Dwarf_Die_Chain cu = { .die = CUDIE (func->cu), .parent = NULL }; local
120 return __libdw_visit_scopes (0, &cu, &scope_visitor, NULL, &v);
H A Ddwarf_child.c67 Dwarf *dbg = die->cu->dbg;
79 abbrevp = __libdw_findabbrev (die->cu, abbrev_code);
128 size_t len = __libdw_form_val_len (dbg, die->cu, attr_form, readp);
188 struct Dwarf_CU *cu = die->cu; local
198 result->cu = cu;
H A Ddwarf_getscopes.c210 struct Dwarf_Die_Chain cu = { .parent = NULL, .die = *cudie }; local
213 int result = __libdw_visit_scopes (0, &cu, &pc_match, &pc_record, &a);
216 result = __libdw_visit_scopes (0, &cu, &origin_match, NULL, &a);
H A Ddwarf_getlocation.c115 getlocation (struct Dwarf_CU *cu, const Dwarf_Block *block, argument
118 Dwarf *dbg = cu->dbg;
122 struct loc_s **found = tfind (&fake, &cu->locs, loc_compare);
154 if (cu->address_size == 4)
335 (void) tsearch (newp, &cu->locs, loc_compare);
355 return getlocation (attr->cu, &block, llbuf, listlen);
379 getlocation (attr->cu, &block, &llbufs[0], &listlens[0]) != 0)
396 const Elf_Data *d = attr->cu->dbg->sectiondata[IDX_debug_loc];
409 < attr->cu->address_size * 2)
418 if (attr->cu
[all...]
/external/elfutils/tests/
H A Dfind-prologues.c44 Dwarf_Die *cu; member in struct:args
101 struct args a = { .dwfl = NULL, .cu = NULL };
110 while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL)
111 dwarf_getfuncs (a.cu, &handle_function, &a, 0);
H A Dfuncretval.c44 Dwarf_Die *cu; member in struct:args
66 printf ("(%s) %s: ", dwfl_module_info (dwfl_cumodule (a->cu), NULL,
72 int nlocops = dwfl_module_return_value_location (dwfl_cumodule (a->cu),
99 struct args a = { .dwfl = NULL, .cu = NULL };
108 while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL)
109 dwarf_getfuncs (a.cu, &handle_function, &a, 0);

Completed in 887 milliseconds

12