c++ - dose dladdr able to get the info from static member? -


During the research of some libraries, I found this type of code

  Dl_info info = { NULL, Faucet, Nouel, Null}; If (! Dladar (Zero *) Diasp, and info) {return libPath.c_str (); }  

Where dirSep is stable const char * in the class where the code is present (to come in the member function), So my question is: Is there any document that the dladdr function is able to get an information form stable const member area?

no, and dladar can not promise or guarantee It can only see the symbol table in the module. If there is a symbol in the symbol table, then it can give it to you if not, not so. The symbol depends on which symbols the table is compiled on how the module is compiled, how it is connected, and how and what has been snatched.

Generally, if the code can link it, then dladdr should find it.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -