dwarves: Add missing bits of separate hash table for types

Grrr, the previous commit has the other bits, and as I already pushed it
out publicly... <BROWN PAPER BAG ALERT!> here goes the rests. So much
for bissectability. Sigh.

But the regression test showed only one problem, in C++ code, that I'll
fix in the next commits.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-03-03 15:29:06 -03:00
parent 3f4e4457e2
commit 93ae61a79b
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ struct cu {
struct list_head node;
struct list_head tags;
struct list_head hash_tags[HASHTAGS__SIZE];
struct list_head hash_types[HASHTAGS__SIZE];
struct list_head tool_list; /* To be used by tools such as ctracer */
const char *name;
uint8_t addr_size;
@ -596,6 +597,7 @@ extern void cu__delete(struct cu *self);
void cu__add_tag(struct cu *self, struct tag *tag);
extern struct tag *cu__find_tag_by_id(const struct cu *self,
const Dwarf_Off id);
struct tag *cu__find_type_by_id(const struct cu *self, const Dwarf_Off id);
extern struct tag *cu__find_first_typedef_of_type(const struct cu *self,
const Dwarf_Off type);
extern struct tag *cu__find_struct_by_name(const struct cu *cu,