Make gdbserver work with filename-only binaries
[deliverable/binutils-gdb.git] / gdb / common / common-utils.h
index 2320318de74d6b08ea49b2b9d2f9f138fed346dd..5408c354693c83ab2b549e82371810c99012384e 100644 (file)
@@ -146,4 +146,9 @@ in_inclusive_range (T value, T low, T high)
   return value >= low && value <= high;
 }
 
+/* Return true if the file NAME exists and is a regular file.
+   If the result is false then *ERRNO_PTR is set to a useful value assuming
+   we're expecting a regular file.  */
+extern bool is_regular_file (const char *name, int *errno_ptr);
+
 #endif
This page took 0.027014 seconds and 4 git commands to generate.