diff options
Diffstat (limited to 'gdb/source.h')
-rw-r--r-- | gdb/source.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/source.h b/gdb/source.h index 541ee3b..8a7d258 100644 --- a/gdb/source.h +++ b/gdb/source.h @@ -1,5 +1,5 @@ /* List lines of source files for GDB, the GNU debugger. - Copyright (C) 1999-2024 Free Software Foundation, Inc. + Copyright (C) 1999-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -16,14 +16,16 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef SOURCE_H -#define SOURCE_H +#ifndef GDB_SOURCE_H +#define GDB_SOURCE_H +#include "gdbsupport/pathstuff.h" #include "gdbsupport/scoped_fd.h" struct program_space; struct symtab; struct symtab_and_line; +struct objfile; /* See openp function definition for their description. */ @@ -37,7 +39,8 @@ enum openp_flag DEF_ENUM_FLAGS_TYPE(openp_flag, openp_flags); extern int openp (const char *, openp_flags, const char *, int, - gdb::unique_xmalloc_ptr<char> *); + gdb::unique_xmalloc_ptr<char> *, + const char *cwd = current_directory); extern int source_full_path_of (const char *, gdb::unique_xmalloc_ptr<char> *); @@ -130,6 +133,7 @@ extern symtab_and_line set_current_source_symtab_and_line /* Reset any information stored about a default file and line to print. */ extern void clear_current_source_symtab_and_line (program_space *pspace); +extern void clear_current_source_symtab_and_line (objfile *objfile); /* Add a source path substitution rule. */ extern void add_substitute_path_rule (const char *, const char *); @@ -219,4 +223,4 @@ extern void forget_cached_source_info (void); need to would make things slower than necessary. */ extern void select_source_symtab (); -#endif +#endif /* GDB_SOURCE_H */ |