[CLASSES]: Add list nodes to struct cu and function to be used by tools
Any tool can use it, first one will be ctracer, the class tracer. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
5cb0779231
commit
4a015cf738
|
@ -180,6 +180,7 @@ static struct cu *cu__new(unsigned int cu, const char *name)
|
|||
INIT_LIST_HEAD(&self->classes);
|
||||
INIT_LIST_HEAD(&self->functions);
|
||||
INIT_LIST_HEAD(&self->variables);
|
||||
INIT_LIST_HEAD(&self->tool_list);
|
||||
self->name = strings__add(name);
|
||||
self->nr_inline_expansions = 0;
|
||||
self->size_inline_expansions = 0;
|
||||
|
|
|
@ -25,6 +25,7 @@ struct cu {
|
|||
struct list_head classes;
|
||||
struct list_head functions;
|
||||
struct list_head variables;
|
||||
struct list_head tool_list; /* To be used by tools such as ctracer */
|
||||
const char *name;
|
||||
unsigned short language;
|
||||
unsigned int id;
|
||||
|
@ -96,6 +97,7 @@ struct function {
|
|||
struct cu *cu;
|
||||
struct lexblock lexblock;
|
||||
struct list_head parameters;
|
||||
struct list_head tool_node; /* Node to be used by tools */
|
||||
const char *name;
|
||||
uint64_t low_pc;
|
||||
uint64_t high_pc;
|
||||
|
|
Loading…
Reference in New Issue