Change how DWARF index writer finds address map
[deliverable/binutils-gdb.git] / gdb / linux-tdep.c
index 3db4d31de377a40c07dddd7aef22a971cac6a11d..ab3402a41c219a5af14871be1afdf6b329d3f6f2 100644 (file)
@@ -40,6 +40,7 @@
 #include "gdbsupport/enum-flags.h"
 #include "gdbsupport/gdb_optional.h"
 #include "gcore.h"
+#include "gcore-elf.h"
 
 #include <ctype.h>
 
@@ -1649,9 +1650,10 @@ static void
 linux_corefile_thread (struct thread_info *info,
                       struct linux_corefile_thread_data *args)
 {
-  gcore_build_thread_register_notes (args->gdbarch, info, args->stop_signal,
-                                    args->obfd, &args->note_data,
-                                    args->note_size);
+  gcore_elf_build_thread_register_notes (args->gdbarch, info,
+                                        args->stop_signal,
+                                        args->obfd, &args->note_data,
+                                        args->note_size);
 
   /* Don't return anything if we got no register information above,
      such a core file is useless.  */
@@ -1933,6 +1935,9 @@ linux_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
   /* File mappings.  */
   linux_make_mappings_corefile_notes (gdbarch, obfd, note_data, note_size);
 
+  /* Target description.  */
+  gcore_elf_make_tdesc_note (obfd, &note_data, note_size);
+
   return note_data;
 }
 
This page took 0.023448 seconds and 4 git commands to generate.