diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 7 |
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; |