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