dissect: simplify lookup_member()
commite8eb70dfab02569a8caeeff362da78ca8c2f26ae
authorOleg Nesterov <oleg@tv-sign.ru>
Thu, 14 Dec 2006 21:37:15 +0000 (15 00:37 +0300)
committerJosh Triplett <josh@freedesktop.org>
Tue, 27 Feb 2007 18:35:50 +0000 (27 10:35 -0800)
tree671bccea605c515f011487f3a8c48e3d50d44df2
parentc4670dfcbe52b598e263c452762a66d22e636585
dissect: simplify lookup_member()

Change examine_sym_node() to recursively inspect the members of SYM_STRUCT.
This allows us to simplify lookup_member(): no need to do examine_sym_node(),
the member was already examined.

This is also good because now ->r_symdef(member) is called on declaration,
not when dissect detects the first usage of ->member.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
dissect.c