Update Errors (#87)

Co-authored-by: NWPlayer123 <NWPlayer123@users.noreply.github.com>
This commit is contained in:
NWPlayer123 2025-01-24 23:07:20 -07:00 committed by GitHub
parent 91aa36c120
commit 8fb56c2fa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ impl FunctionSlices {
if check_prologue_sequence(section, addr, Some(ins))? { if check_prologue_sequence(section, addr, Some(ins))? {
if let Some(prologue) = self.prologue { if let Some(prologue) = self.prologue {
if prologue != addr && prologue != addr - 4 { if prologue != addr && prologue != addr - 4 {
bail!("Found duplicate prologue: {:#010X} and {:#010X}", prologue, addr) bail!("Found multiple functions inside a symbol: {:#010X} and {:#010X}. Check symbols.txt?", prologue, addr)
} }
} else { } else {
self.prologue = Some(addr); self.prologue = Some(addr);

View File

@ -710,7 +710,7 @@ where R: BufRead + ?Sized {
ensure!( ensure!(
section.contains_range(start..end) section.contains_range(start..end)
|| (start == section_end && end == section_end), || (start == section_end && end == section_end),
"Section {} ({:#010X}..{:#010X}) does not contain range {:#010X}..{:#010X}", "Section {} ({:#010X}..{:#010X}) does not contain range {:#010X}..{:#010X}. Check splits.txt?",
name, name,
section.address, section.address,
section.address + section.size, section.address + section.size,