aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-12-13 00:38:38 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-12-13 00:38:38 +0000
commit0d3cd463e38ed3e3f7ae27ca38c00170150a275f (patch)
treeb914bea3898f12983af0fc8a627d7f03d601cc79 /sim/common/callback.c
parentc4b36ce9fe15924cebd13edf3867f19eded2fa89 (diff)
downloadgdb-0d3cd463e38ed3e3f7ae27ca38c00170150a275f.zip
gdb-0d3cd463e38ed3e3f7ae27ca38c00170150a275f.tar.gz
gdb-0d3cd463e38ed3e3f7ae27ca38c00170150a275f.tar.bz2
* syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
* callback.c (os_lstat): New function.
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 2204787..7ba0c06 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -407,6 +407,16 @@ os_fstat (p, fd, buf)
return wrap (p, fstat (fdmap (p, fd), buf));
}
+static int
+os_lstat (p, file, buf)
+ host_callback *p;
+ const char *file;
+ struct stat *buf;
+{
+ /* NOTE: hpn/2004-12-12: Same issue here as with os_fstat. */
+ return wrap (p, lstat (file, buf));
+}
+
static int
os_ftruncate (p, fd, len)
host_callback *p;
@@ -589,6 +599,7 @@ host_callback default_callback =
os_stat,
os_fstat,
+ os_lstat,
os_ftruncate,
os_truncate,