* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
[deliverable/binutils-gdb.git] / gdb / gdbserver / utils.c
index 8a1acd9fc724cdd6f1c1bbbc19a73b73ef52139a..4c047e0f5c5bbe87d2e11253a3a3065fed077fbc 100644 (file)
@@ -370,3 +370,15 @@ paddress (CORE_ADDR addr)
 {
   return phex_nz (addr, sizeof (CORE_ADDR));
 }
+
+/* Convert a file descriptor into a printable string.  */
+
+char *
+pfildes (gdb_fildes_t fd)
+{
+#if USE_WIN32API
+  return phex_nz (fd, sizeof (gdb_fildes_t));
+#else
+  return plongest (fd);
+#endif
+}
This page took 0.026489 seconds and 4 git commands to generate.