aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-10-09 01:28:02 +0000
committerPedro Alves <palves@redhat.com>2009-10-09 01:28:02 +0000
commit651c8d2d6c30c4d2178988e5c48fdad2116982ed (patch)
tree8d639768bb7f3c467736ec5f166a4050b7552eea /gdb
parent62f33d08c88ab3cb27e4115fbc5645bfbcf87d0d (diff)
downloadgdb-651c8d2d6c30c4d2178988e5c48fdad2116982ed.zip
gdb-651c8d2d6c30c4d2178988e5c48fdad2116982ed.tar.gz
gdb-651c8d2d6c30c4d2178988e5c48fdad2116982ed.tar.bz2
* procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
note when NEW_PROC_API is defined.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/procfs.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18bcaaa..77987ca 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
(core_close): Clear it.
(add_to_thread_list): Fake a pid if one is not found on a Solaris
diff --git a/gdb/procfs.c b/gdb/procfs.c
index b569bac..b2868bc 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -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. */