util/DwarfReader, ElfImporter: use unsigned addresses
This change alters DwarfReader and import-trace's ElfImporter so that they use unsigned int for static address and line numbers instead of signed int. Change-Id: I84ebbb500afd7cd4d93b137a35dcf736dc679fab
This commit is contained in:
@ -234,7 +234,7 @@ bool DwarfReader::read_mapping(std::string fileName, std::list<addrToLine>& addr
|
||||
}
|
||||
|
||||
if (lineNo&&isCode) {
|
||||
struct addrToLine newLine = { (int) addr, (int) lineNo, normalize(lineSource) };
|
||||
struct addrToLine newLine = { addr, lineNo, normalize(lineSource) };
|
||||
addrToLineList.push_back(newLine);
|
||||
}
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@ namespace fail {
|
||||
*/
|
||||
|
||||
struct addrToLine {
|
||||
int absoluteAddr;
|
||||
int lineNumber;
|
||||
unsigned absoluteAddr;
|
||||
unsigned lineNumber;
|
||||
std::string lineSource;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user