Skip to content

Commit

Permalink
Make incomplete core file error message better.
Browse files Browse the repository at this point in the history
  • Loading branch information
randall77 committed Oct 2, 2017
1 parent 92c5ec8 commit 20dcf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (p *Process) readLoad(f *os.File, e *elf.File, prog *elf.Prog) error {
if prog.Flags&elf.PF_W != 0 {
perm |= Write
if prog.Filesz != prog.Memsz {
return fmt.Errorf("writeable section not complete in core %x %x %x %x", prog.Filesz, prog.Memsz)
return fmt.Errorf("Data at address %x is not complete. The core has %x bytes, we need %x bytes", min, prog.Filesz, prog.Memsz)
}
}
if prog.Flags&elf.PF_X != 0 {
Expand Down

0 comments on commit 20dcf00

Please sign in to comment.