OSDN Git Service

2005-11-17 Shaun Jackman <sjackman@gmail.com>
authorjjohnstn <jjohnstn>
Thu, 17 Nov 2005 18:56:41 +0000 (18:56 +0000)
committerjjohnstn <jjohnstn>
Thu, 17 Nov 2005 18:56:41 +0000 (18:56 +0000)
* libgloss/arm/libcfunc.c (isatty): Call _isatty. GDB now supports
the IsTTY SWI that _isatty calls.

libgloss/ChangeLog
libgloss/arm/libcfunc.c

index d6134a9..d445ced 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-17  Shaun Jackman  <sjackman@gmail.com>
+
+       * libgloss/arm/libcfunc.c (isatty): Call _isatty. GDB now supports
+       the IsTTY SWI that _isatty calls.
+
 2005-11-17  Hans-Peter Nilsson  <hp@axis.com>
 
        * cris/linunistd.h: Don't redefine errno as extern int.
index bde55af..f28f527 100644 (file)
@@ -47,10 +47,7 @@ int _isatty(int fildes);
 int __attribute__((weak))
 isatty(int fildes)
 {
-       /* GDB does not yet support the IsTTY SWI that _isatty
-        * calls, so always return true for now.  */
-       (void)fildes;
-       return 1;
+       return _isatty(fildes);
 }
 
 int __attribute__((weak))