* procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
authorPedro Alves <palves@redhat.com>
Fri, 9 Oct 2009 01:28:02 +0000 (01:28 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Oct 2009 01:28:02 +0000 (01:28 +0000)
note when NEW_PROC_API is defined.

gdb/ChangeLog
gdb/procfs.c

index 18bcaaae570dda5cda097aa90d1a55af62bb0ba0..77987ca15fab5e621a381d885b3d1c2587879b8b 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
+       note when NEW_PROC_API is defined.
+
 2009-10-09  Pedro Alves  <pedro@codesourcery.com>
 
        * corelow.c (core_has_fake_pid): New.
index b569bac86f9acca2ae133489d74100e897810f55..b2868bcc3413d6e21c1c4a90fcd56e83ee3086fb 100644 (file)
@@ -6126,6 +6126,7 @@ procfs_make_note_section (bfd *obfd, int *note_size)
   struct procfs_corefile_thread_data thread_args;
   gdb_byte *auxv;
   int auxv_len;
+  enum target_signal stop_signal;
 
   if (get_exec_file (0))
     {
@@ -6150,7 +6151,9 @@ procfs_make_note_section (bfd *obfd, int *note_size)
                                               fname,
                                               psargs);
 
-#ifdef UNIXWARE
+  stop_signal = find_stop_signal ();
+
+#ifdef NEW_PROC_API
   fill_gregset (get_current_regcache (), &gregs, -1);
   note_data = elfcore_write_pstatus (obfd, note_data, note_size,
                                     PIDGET (inferior_ptid),
@@ -6160,7 +6163,7 @@ procfs_make_note_section (bfd *obfd, int *note_size)
   thread_args.obfd = obfd;
   thread_args.note_data = note_data;
   thread_args.note_size = note_size;
-  thread_args.stop_signal = find_stop_signal ();
+  thread_args.stop_signal = stop_signal;
   proc_iterate_over_threads (pi, procfs_corefile_thread_callback, &thread_args);
 
   /* There should be always at least one thread.  */
This page took 0.0366 seconds and 4 git commands to generate.