gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 25 Jul 2010 09:31:12 +0000 (09:31 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 25 Jul 2010 09:31:12 +0000 (09:31 +0000)
* linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
the host signal first.

gdb/ChangeLog
gdb/linux-nat.c

index f89375e728fac65e5e95b979f984597ae90b211a..9908178063a6615af5cfe79ee619ac4c119bde44 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
+       the host signal first.
+
 2010-07-23  Tom Tromey  <tromey@redhat.com>
 
        * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
index 6b3c4465087bedba7a9ba913b0fc898491cd319c..c37dab91402864770dfb2291f7fe4721a8dc5404 100644 (file)
@@ -4190,7 +4190,8 @@ linux_nat_do_thread_registers (bfd *obfd, ptid_t ptid,
        if (strcmp (sect_list->sect_name, ".reg") == 0)
          note_data = (char *) elfcore_write_prstatus
                                (obfd, note_data, note_size,
-                                lwp, stop_signal, gdb_regset);
+                                lwp, target_signal_to_host (stop_signal),
+                                gdb_regset);
        else
          note_data = (char *) elfcore_write_register_note
                                (obfd, note_data, note_size,
@@ -4217,11 +4218,9 @@ linux_nat_do_thread_registers (bfd *obfd, ptid_t ptid,
       else
        fill_gregset (regcache, &gregs, -1);
 
-      note_data = (char *) elfcore_write_prstatus (obfd,
-                                                  note_data,
-                                                  note_size,
-                                                  lwp,
-                                                  stop_signal, &gregs);
+      note_data = (char *) elfcore_write_prstatus
+       (obfd, note_data, note_size, lwp, target_signal_to_host (stop_signal),
+        &gregs);
 
       if (core_regset_p
           && (regset = gdbarch_regset_from_core_section (gdbarch, ".reg2",