mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-15 02:09:22 +08:00
covoar: wrong symbol length in coverage map
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Coverage {
|
|||||||
for (auto& func : cu.get_functions()) {
|
for (auto& func : cu.get_functions()) {
|
||||||
if (func.has_machine_code() && (!func.is_inlined() || func.is_external())) {
|
if (func.has_machine_code() && (!func.is_inlined() || func.is_external())) {
|
||||||
createCoverageMap (cu.name(), func.name(),
|
createCoverageMap (cu.name(), func.name(),
|
||||||
func.pc_low(), func.pc_high());
|
func.pc_low(), func.pc_high() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,7 @@ namespace Coverage {
|
|||||||
|
|
||||||
uint32_t lowAddress = coverageMap.getFirstLowAddress();
|
uint32_t lowAddress = coverageMap.getFirstLowAddress();
|
||||||
uint32_t size = coverageMap.getSize();
|
uint32_t size = coverageMap.getSize();
|
||||||
uint32_t highAddress = lowAddress + size;
|
uint32_t highAddress = lowAddress + size - 1;
|
||||||
|
|
||||||
// If there are NOT already saved instructions, save them.
|
// If there are NOT already saved instructions, save them.
|
||||||
SymbolInformation* symbolInfo = SymbolsToAnalyze->find( symbolName );
|
SymbolInformation* symbolInfo = SymbolsToAnalyze->find( symbolName );
|
||||||
|
Reference in New Issue
Block a user