aboutsummaryrefslogtreecommitdiff
path: root/gdb/build-id.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/build-id.h')
-rw-r--r--gdb/build-id.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/build-id.h b/gdb/build-id.h
index 4c3f8e0..191720d 100644
--- a/gdb/build-id.h
+++ b/gdb/build-id.h
@@ -49,10 +49,16 @@ extern gdb_bfd_ref_ptr build_id_to_exec_bfd (size_t build_id_len,
/* Find the separate debug file for OBJFILE, by using the build-id
associated with OBJFILE's BFD. If successful, returns the file name for the
- separate debug file, otherwise, return an empty string. */
+ separate debug file, otherwise, return an empty string.
+
+ Any warnings that are generated by the lookup process should be added to
+ WARNINGS_VECTOR, one std::string per warning. If some other mechanism can
+ be used to lookup the debug information then the warning will not be shown,
+ however, if GDB fails to find suitable debug information using any
+ approach, then any warnings will be printed. */
extern std::string find_separate_debug_file_by_buildid
- (struct objfile *objfile);
+ (struct objfile *objfile, std::vector<std::string> *warnings_vector);
/* Return an hex-string representation of BUILD_ID. */