summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2010-10-06 23:45:44 +0000
committerHans-Peter Nilsson <hp@axis.com>2010-10-06 23:45:44 +0000
commit0bd15c7fb2b8e2bcc72890acc6e42816d39d64df (patch)
tree57fd9c25c9b08f9c5cc77594d5dba288a8ca7e8e /sim
parent7cf1d8af2f630bd1959cb16a6ddc50650239d0de (diff)
downloadbinutils-0bd15c7fb2b8e2bcc72890acc6e42816d39d64df.tar.gz
binutils-0bd15c7fb2b8e2bcc72890acc6e42816d39d64df.tar.bz2
binutils-0bd15c7fb2b8e2bcc72890acc6e42816d39d64df.zip
* callback.c (os_lseek): Call wrap on lseek result.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/callback.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 2eebba82b9f..6cb313b7452 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-07 Hans-Peter Nilsson <hp@axis.com>
+
+ * callback.c (os_lseek): Call wrap on lseek result.
+
2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
* dv-sockser.c (dv_sockser_init): Check error return from socket()
diff --git a/sim/common/callback.c b/sim/common/callback.c
index d034bca4512..a12b3fe2b48 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -278,7 +278,7 @@ os_lseek (p, fd, off, way)
result = fdbad (p, fd);
if (result)
return result;
- result = lseek (fdmap (p, fd), off, way);
+ result = wrap (p, lseek (fdmap (p, fd), off, way));
return result;
}