diff options
author | Pedro Alves <palves@redhat.com> | 2008-09-08 21:48:52 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-09-08 21:48:52 +0000 |
commit | 32400bebb23653900ef060aae37668a2a1961155 (patch) | |
tree | 9b74d3a143584431a3999f0f54833aeb8cdea0b7 /gdb/infcall.c | |
parent | 347bddb745acda8fb591511a547e66bbe00d768b (diff) | |
download | gdb-32400bebb23653900ef060aae37668a2a1961155.zip gdb-32400bebb23653900ef060aae37668a2a1961155.tar.gz gdb-32400bebb23653900ef060aae37668a2a1961155.tar.bz2 |
* gdbthread.h (struct thread_info): Add comments around
proceed_to_finish.
(save_infrun_state, load_infrun_state): Remove proceed_to_finish
argument.
* thread.c (load_infrun_state, save_infrun_state): Delete
proceed_to_finish argument and references to it.
* infcall.c (call_function_by_hand): Adjust.
* infcmd.c (finish_command): Adjust.
* infrun.c (proceed_to_finish): Delete.
(clear_proceed_status): Adjust.
(context_switch): Don't context-switch proceed_to_finish.
(normal_stop, save_inferior_status, restore_inferior_status):
Adjust.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index ec8f732..a6371ea 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -710,6 +710,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) struct cleanup *old_cleanups = make_cleanup (null_cleanup, 0); struct cleanup *old_cleanups2; int saved_async = 0; + struct thread_info *tp = inferior_thread (); /* If all error()s out of proceed ended up calling normal_stop (and perhaps they should; it already does in the special case @@ -717,7 +718,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) make_cleanup (breakpoint_auto_delete_contents, NULL); disable_watchpoints_before_interactive_call_start (); - proceed_to_finish = 1; /* We want stop_registers, please... */ + tp->proceed_to_finish = 1; /* We want stop_registers, please... */ if (target_can_async_p ()) saved_async = target_async_mask (0); |