  {
    struct build_id *retval;
  
-@@ -1067,6 +1121,348 @@ build_id_bfd_get (bfd *abfd)
+@@ -1067,6 +1122,348 @@ build_id_bfd_get (bfd *abfd)
    return retval;
  }
  

     # If allowing the inferior to have its own PTY then assign the inferior
     # its own terminal device here.
     if { $separate_inferior_pty } {

 @cindex @code{.gnu_debuglink} sections
 @cindex debug link sections
 A debug link is a special section of the executable file named
diff -rup gdb-7.4ori//gdb/elfread.c gdb-7.4/gdb/elfread.c
--- gdb-7.4ori//gdb/elfread.c	2012-01-06 05:43:11.000000000 +0100
+++ gdb-7.4/gdb/elfread.c	2012-05-10 11:27:18.443643345 +0200
@@ -41,6 +41,12 @@
 #include "infcall.h"
 #include "gdbthread.h"
 #include "regcache.h"
