- /* A helper function for get_source_lines that is used when the
- source lines are not highlighted. The arguments and return value
- are as for get_source_lines. */
- bool get_plain_source_lines (struct symtab *s, int first_line,
- int last_line, std::string *lines);
- /* A helper function for get_plain_source_lines that extracts the
- desired source lines from TEXT, putting them into LINES. The
- arguments and return value are as for get_source_lines. */
- bool extract_lines (const struct source_text &text, int first_line,
- int last_line, std::string *lines);
-
- /* The contents of the cache. */
+ /* A helper function for get_source_lines reads a source file.
+ Returns the contents of the file; or throws an exception on
+ error. This also updates m_offset_cache. */
+ std::string get_plain_source_lines (struct symtab *s,
+ const std::string &fullname);
+
+ /* A helper function that the data for the given symtab is entered
+ into both caches. Returns false on error. */
+ bool ensure (struct symtab *s);
+
+ /* The contents of the source text cache. */