]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Oct 2012 15:06:03 +0000 (16:06 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Oct 2012 15:06:03 +0000 (16:06 +0100)
libdw/libdw.map
libdwfl/find-debuginfo.c
libdwfl/libdwfl.h

index 9a373752a78c466d939d708e3950b4ea73c22be1..853671f1c48de38c03eb2b7b7e74d82cb24a58e4 100644 (file)
@@ -258,6 +258,7 @@ ELFUTILS_0.149 {
 ELFUTILS_0.155 {
   global:
     dwfl_report_elf_baseaddr;
+    dwfl_fd_find_debuginfo;
     dwfl_frame_state_pid;
     dwfl_frame_state_core;
     dwfl_frame_state_data;
index 21db91a406a3c384ea113b72abe62fd897c843ca..40c96404a0897bc047da4aca9c9455a7ccf118af 100644 (file)
@@ -269,3 +269,11 @@ dwfl_standard_find_debuginfo (Dwfl_Module *mod,
   return fd;
 }
 INTDEF (dwfl_standard_find_debuginfo)
+
+bool
+dwfl_fd_find_debuginfo (Dwfl_Module *mod, GElf_Word debuglink_crc, int fd)
+{
+  bool cancheck = debuglink_crc != (GElf_Word) 0;
+  return validate (mod, fd, cancheck, debuglink_crc);
+}
+INTDEF (dwfl_fd_find_debuginfo)
index 3b8cb37b581ff092945d852552911b3613f634a7..3a8d3e07895f4ebdcf88481ebd140e20ec0b699c 100644 (file)
@@ -304,6 +304,10 @@ extern int dwfl_standard_find_debuginfo (Dwfl_Module *, void **,
                                         const char *, const char *,
                                         GElf_Word, char **);
 
+/* Provide supplied separate debug info file FD for MOD.  */
+extern bool dwfl_fd_find_debuginfo (Dwfl_Module *mod, GElf_Word debuglink_crc,
+                                    int fd);
+
 
 /* This callback must be used when using dwfl_offline_* to report modules,
    if ET_REL is to be supported.  */