ElfReader: return ADDR_INV instead of (signed) -1 on failure

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1907 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-11-09 15:37:18 +00:00
parent a26aeb52ee
commit 805f67e23c

View File

@ -1,5 +1,6 @@
#include "ElfReader.hpp"
#include "elfinfo/elfinfo.h"
#include "sal/SALConfig.hpp"
#include <stdio.h>
#include <cstdlib>
@ -101,7 +102,7 @@ int ElfReader::process_symboltable(int sect_num, FILE* fp){
guest_address_t ElfReader::getAddressByName(const std::string& name) {
if( m_map.find(name) == m_map.end() ) {
return -1;
return ADDR_INV;
}else{
return m_map[name];
}