Cleanup value_fetch_lazy's comment and return value
[deliverable/binutils-gdb.git] / gdb / coffread.c
index 3b5a968c346b6d13bfcdb2a23e4221d330d9b5d7..7722cdbff7b1d6cd6a4651c452ee70f218a09587 100644 (file)
@@ -41,6 +41,7 @@
 #include "coff-pe-read.h"
 
 #include "psymtab.h"
+#include "build-id.h"
 
 extern void _initialize_coffread (void);
 
@@ -738,7 +739,10 @@ coff_symfile_read (struct objfile *objfile, int symfile_flags)
     {
       char *debugfile;
 
-      debugfile = find_separate_debug_file_by_debuglink (objfile);
+      debugfile = find_separate_debug_file_by_buildid (objfile);
+
+      if (debugfile == NULL)
+       debugfile = find_separate_debug_file_by_debuglink (objfile);
       make_cleanup (xfree, debugfile);
 
       if (debugfile)
This page took 0.027848 seconds and 4 git commands to generate.