summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-12-11 15:23:12 +0000
committerPedro Alves <palves@redhat.com>2012-12-11 15:23:12 +0000
commit4450a1ffb745823242d5f73240375928d03627e6 (patch)
treedbee7b2cbc535911b07f7f1b2d2a1d377fd982a0 /gdb/procfs.c
parent93502ee2ff8cfd5f087f14440ac06e73964fc329 (diff)
downloadgdb-4450a1ffb745823242d5f73240375928d03627e6.tar.gz
2012-12-11 Pedro Alves <pedro@codesourcery.com>
Pedro Alves <palves@redhat.com> * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a NT_PSTATUS note. * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs differently from LWP IDs.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index fa18b46460d..1c5cc13b80b 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -5507,6 +5507,13 @@ procfs_make_note_section (bfd *obfd, int *note_size)
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),
+ stop_signal, &gregs);
+#endif
+
thread_args.obfd = obfd;
thread_args.note_data = note_data;
thread_args.note_size = note_size;