From d2a3ee23fbd211fd62be4c8d08ea708d89fcf822 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Mon, 13 Apr 1998 23:18:21 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog-gdbtk | 5 +++++ gdb/gdbtk.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 330737c6f26..b587cd1c785 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 089a0ca4ad7..81dda498d7e 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); -- 2.30.2