Address space of struct member

Dan Carpenter <[email protected]>
Newsgroups org.kernel.vger.smatch
Message-ID <CA+_b7DK+s8cGjk09kbS9nyTCNF+k-_Wv-mZm2xXWyLpgeaXRug@mail.gmail.com>
I'm still not back.  I hopefully will be around next week sometime.

The expr_to_var_sym() function, is returning the wrong symbol for you.  If
you pass it foo->bar->baz then the symbol it returns is for "foo".  There
isn't really a symbol for ->baz because that's not a variable by itself.
If you try expr to var sym() on foo[bar] then it fails because there are
two symbols.

But you should be able to use get_type() to look up the information you
want.

The symbol hook is not really useful for you in this situation either.w

Regards,
Dan Carpenter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.