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.
This commit is contained in:
Martin Hunt 1998-04-13 23:18:21 +00:00
parent e6e9507d63
commit d2a3ee23fb
2 changed files with 6 additions and 1 deletions

View 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);