Make save_infcall_*_state return unique pointers
authorTom Tromey <tom@tromey.com>
Wed, 11 Jul 2018 19:29:59 +0000 (13:29 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 17 Sep 2018 06:42:19 +0000 (00:42 -0600)
commitcb5248409d7a5a10748c2aa70824ecddf2f913d5
tree1882af1d9ee8efcb9b96d2701db0b1c4ee12215c
parent2d844eaf9c60832756cff80af67e16969c0e11fc
Make save_infcall_*_state return unique pointers

Simon pointed out that save_infcall_suspend_state and
save_infcall_control_state could return unique pointers.  This patch
implements this idea.

gdb/ChangeLog
2018-09-17  Tom Tromey  <tom@tromey.com>

* infrun.c (save_infcall_suspend_state): Return
infcall_suspend_state_up.
(save_infcall_control_state): Return infcall_control_state_up.
* inferior.h (save_infcall_suspend_state)
(save_infcall_control_state): Declare later.  Return unique
pointers.
gdb/ChangeLog
gdb/inferior.h
gdb/infrun.c
This page took 0.027647 seconds and 4 git commands to generate.