aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-12-11 15:23:15 +0000
committerPedro Alves <palves@redhat.com>2012-12-11 15:23:15 +0000
commit3e3420f6a11ef07df4bd3d2be38481870f2834cf (patch)
treecae91bdfc24fb971fdcf42de25b79d7995f6480e /gdb/procfs.c
parent05b4bd799a73514fc9156f87ce4b353f7458cf11 (diff)
downloadgdb-3e3420f6a11ef07df4bd3d2be38481870f2834cf.zip
gdb-3e3420f6a11ef07df4bd3d2be38481870f2834cf.tar.gz
gdb-3e3420f6a11ef07df4bd3d2be38481870f2834cf.tar.bz2
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 fa18b46..1c5cc13 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;