Mon Apr 13 16:17:52 1998 Martin M. Hunt <hunt@cygnus.com>
authorMartin Hunt <hunt@redhat.com>
Mon, 13 Apr 1998 23:18:21 +0000 (23:18 +0000)
committerMartin Hunt <hunt@redhat.com>
Mon, 13 Apr 1998 23:18:21 +0000 (23:18 +0000)
* gdbtk.c (gdb_loadfile): Change fstat() call to stat().
Needed because you can't convert a FILE* to an fd.

gdb/ChangeLog-gdbtk
gdb/gdbtk.c

index 330737c..b587cd1 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Mon Apr 13 16:28:07 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
        
        * gdbtk.c: (perror_with_name_wrapper) new function to call 
index 089a0ca..81dda49 100644 (file)
@@ -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);