aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1998-04-13 23:18:21 +0000
committerMartin Hunt <hunt@redhat.com>1998-04-13 23:18:21 +0000
commitd2a3ee23fbd211fd62be4c8d08ea708d89fcf822 (patch)
tree6764359abe768664bf185e8615fc1c33993ed2bc /gdb/gdbtk.c
parente6e9507d63419640b974263902fafb1564270ce9 (diff)
downloadgdb-d2a3ee23fbd211fd62be4c8d08ea708d89fcf822.zip
gdb-d2a3ee23fbd211fd62be4c8d08ea708d89fcf822.tar.gz
gdb-d2a3ee23fbd211fd62be4c8d08ea708d89fcf822.tar.bz2
Mon Apr 13 16:17:52 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_loadfile): Change fstat() call to stat(). Needed because you can't convert a FILE* to an fd.
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 089a0ca..81dda49 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -3094,7 +3094,7 @@ gdb_loadfile (clientData, interp, objc, objv)
return TCL_ERROR;
}
- if (fstat (fp->_file, &st) < 0)
+ if (stat (file, &st) < 0)
{
catch_errors (perror_with_name_wrapper, "gdbtk: get time stamp", "",
RETURN_MASK_ALL);