summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/filestuff.h')
-rw-r--r--gdbsupport/filestuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbsupport/filestuff.h b/gdbsupport/filestuff.h
index 4bc9249dcbf..33362901ab8 100644
--- a/gdbsupport/filestuff.h
+++ b/gdbsupport/filestuff.h
@@ -129,4 +129,8 @@ extern bool is_regular_file (const char *name, int *errno_ptr);
extern bool mkdir_recursive (const char *dir);
+/* Read the entire content of file PATH into an std::string. */
+
+extern gdb::optional<std::string> read_text_file_to_string (const char *path);
+
#endif /* COMMON_FILESTUFF_H */