ElfReader: Support for Section and Symbol size.
- getSection/getSymbol now returns an ElfSymbol reference. Searching by address now searches if address is within symbol address and symbol address + size. So we can test, if we are *within* a function, object or section and not only at the start address.
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
namespace fail {
|
||||
|
||||
|
||||
const std::string Demangler::DEMANGLE_FAILED = "[Demangler] Demangle failed.";
|
||||
|
||||
std::string Demangler::demangle(const std::string& name){
|
||||
@ -13,7 +13,7 @@ namespace fail {
|
||||
if(res != NULL){
|
||||
return std::string(res);
|
||||
}else{
|
||||
return DEMANGLE_FAILED;
|
||||
return Demangler::DEMANGLE_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user