diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-21 20:41:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-21 20:41:43 +0000 |
commit | 3f77e4dbd2288c5ee92027a0c11602eeee086a90 (patch) | |
tree | 56ce12a7c7c15fc4f6384f1bb4cacf23a9deac56 /sim/common | |
parent | 0140894e2861f0c416ce5e2f2843b4fdd49343e8 (diff) | |
download | gdb-3f77e4dbd2288c5ee92027a0c11602eeee086a90.tar.gz |
2003-10-21 Andrew Cagney <cagney@redhat.com>
* callback.c (os_truncate): Call "truncate", and not "stat".
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/callback.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 4d4a2fd4520..9e316d97c48 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Andrew Cagney <cagney@redhat.com> + + * callback.c (os_truncate): Call "truncate", and not "stat". + 2003-10-20 Andrew Cagney <cagney@redhat.com> * sim-base.h: Replace "struct sec" with "struct bfd_section". diff --git a/sim/common/callback.c b/sim/common/callback.c index b22548182b5..aa2cf076bd3 100644 --- a/sim/common/callback.c +++ b/sim/common/callback.c @@ -420,7 +420,7 @@ os_truncate (p, file, len) const char *file; long len; { - return wrap (p, stat (file, len)); + return wrap (p, truncate (file, len)); } static int |