Eliminate fork_info::clobber_regs
authorPedro Alves <palves@redhat.com>
Wed, 6 Mar 2019 18:29:19 +0000 (18:29 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 6 Mar 2019 18:29:19 +0000 (18:29 +0000)
commitb7e60d85da12a1819671473db8550c9f076e8f38
tree113919f762a9afb6f61c521403726046d1b7a5aa
parente52c971f17ac747a065388b54a909f44b5582cd9
Eliminate fork_info::clobber_regs

All fork_save_infrun_state callers pass '1' as CLOBBER_REGS nowadays.

The larger hunk in fork_save_infrun_state is just a reindentation.

gdb/ChangeLog:
2019-03-06  Pedro Alves  <palves@redhat.com>

* linux-fork.c (fork_info::clobber_regs): Delete.
(fork_load_infrun_state): Remove reference to 'clobber_regs'.
(fork_save_infrun_state): Remove 'clobber_regs' parameter.  Update
comment.  Adjust.
(scoped_switch_fork_info::scoped_switch_fork_info)
(checkpoint_command, linux_fork_context): Adjust
fork_save_infrun_state calls.
gdb/ChangeLog
gdb/linux-fork.c