/* List lines of source files for GDB, the GNU debugger.
- Copyright (C) 1999-2019 Free Software Foundation, Inc.
+ Copyright (C) 1999-2020 Free Software Foundation, Inc.
This file is part of GDB.
#ifndef SOURCE_H
#define SOURCE_H
-#include "common/scoped_fd.h"
+#include "gdbsupport/scoped_fd.h"
struct symtab;
negative number for error. */
extern scoped_fd open_source_file (struct symtab *s);
-/* Open a source file given a symtab S (by calling open_source_file), then
- ensure the line_charpos data is initialised for symtab S before
- returning. */
-extern scoped_fd open_source_file_with_line_charpos (struct symtab *s);
-
extern gdb::unique_xmalloc_ptr<char> rewrite_source_path (const char *path);
extern const char *symtab_to_fullname (struct symtab *s);
/* Add a source path substitution rule. */
extern void add_substitute_path_rule (char *, char *);
-/* Print text describing the full name of the source file S
- and the line number LINE and its corresponding character position.
- The text starts with two Ctrl-z so that the Emacs-GDB interface
- can easily find it.
-
- MID_STATEMENT is nonzero if the PC is not at the beginning of that line.
-
- Return 1 if successful, 0 if could not find the file. */
-extern int identify_source_line (struct symtab *s, int line,
- int mid_statement, CORE_ADDR pc);
-
/* Flags passed as 4th argument to print_source_lines. */
enum print_source_lines_flag
{