Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-09-06 17:32:08 +0000
committerEugene Tarassov2014-09-06 17:32:08 +0000
commit809d063b83d824fa0e1946655f9ebcdd8e8907a6 (patch)
tree38c0efdeb2b2bca703512141c7dd7021dbfc776c /agent/tcf/services/tcf_elf.c
parent6653569a99558a7aef0a8ef637971c53cc3902a9 (diff)
downloadorg.eclipse.tcf.agent-809d063b83d824fa0e1946655f9ebcdd8e8907a6.tar.gz
org.eclipse.tcf.agent-809d063b83d824fa0e1946655f9ebcdd8e8907a6.tar.xz
org.eclipse.tcf.agent-809d063b83d824fa0e1946655f9ebcdd8e8907a6.zip
TCF Agent: fixed ELF reader regression: "Unexpected end of file" error must have code ERR_INV_FORMAT to allow to continue symbol search in other files
Diffstat (limited to 'agent/tcf/services/tcf_elf.c')
-rw-r--r--agent/tcf/services/tcf_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/tcf_elf.c b/agent/tcf/services/tcf_elf.c
index e6369021..d9a5ca73 100644
--- a/agent/tcf/services/tcf_elf.c
+++ b/agent/tcf/services/tcf_elf.c
@@ -548,7 +548,7 @@ static int read_fully(int fd, void * buf, size_t size) {
while (size > 0) {
int rd = read(fd, p, size);
if (rd <= 0) {
- if (rd == 0) set_errno(ERR_OTHER, "Unexpected end of file");
+ if (rd == 0) set_errno(ERR_INV_FORMAT, "Unexpected end of file");
return -1;
}
size -= rd;

Back to the top