From: Martin Hunt Date: Mon, 13 Apr 1998 23:18:21 +0000 (+0000) Subject: Mon Apr 13 16:17:52 1998 Martin M. Hunt X-Git-Tag: gdb-4_18~2654 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2a3ee23fbd211fd62be4c8d08ea708d89fcf822;p=platform%2Fupstream%2Fbinutils.git Mon Apr 13 16:17:52 1998 Martin M. Hunt * gdbtk.c (gdb_loadfile): Change fstat() call to stat(). Needed because you can't convert a FILE* to an fd. --- diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 330737c..b587cd1 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,8 @@ +Mon Apr 13 16:17:52 1998 Martin M. Hunt + + * 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 * gdbtk.c: (perror_with_name_wrapper) new function to call 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);