diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-09-13 18:26:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-09-13 18:26:31 +0000 |
commit | 096d8d42d6da89fc3dbcaf3b4e5e1c74477bcf79 (patch) | |
tree | 85677e1d87b59990b42f0a167f03b192318b9ca6 /gdb/breakpoint.c | |
parent | 374a4c4161e8c1e93a33577d4daf8d64876bac78 (diff) | |
download | gdb-096d8d42d6da89fc3dbcaf3b4e5e1c74477bcf79.tar.gz |
2004-09-13 Andrew Cagney <cagney@gnu.org>
Eliminate event_loop_p, always has the value 1.
* defs.h (event_loop_p): Delete macro.
* breakpoint.c (until_break_command): Simplify.
* utils.c (prompt_for_continue): Simplify.
* tracepoint.c (read_actions): Simplify.
* top.c (throw_exception, execute_command, gdb_readline_wrapper)
(gdb_rl_operate_and_get_next, command_line_input, get_prompt)
(set_prompt, init_main): Simplify.
(init_signals, disconnect): Delete, unused.
* remote.c (remote_async_resume)
(extended_remote_async_create_inferior): Simplify.
* mi/mi-interp.c (mi_input): Delete, unused.
(mi_interpreter_resume, mi_command_loop): Simplify.
* interps.c (current_interp_command_loop): Simplify.
* infrun.c (proceed): Simplify.
* infcmd.c (run_command, continue_command, step_1, jump_command)
(until_command, advance_command, finish_command)
(interrupt_target_command): Simplify.
* event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index c5e8ddd0912..7e9e669ce25 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6123,7 +6123,7 @@ until_break_command (char *arg, int from_tty, int anywhere) get_frame_id (deprecated_selected_frame), bp_until); - if (!event_loop_p || !target_can_async_p ()) + if (!target_can_async_p ()) old_chain = make_cleanup_delete_breakpoint (breakpoint); else old_chain = make_exec_cleanup_delete_breakpoint (breakpoint); @@ -6135,7 +6135,7 @@ until_break_command (char *arg, int from_tty, int anywhere) where we get a chance to do that is in fetch_inferior_event, so we must set things up for that. */ - if (event_loop_p && target_can_async_p ()) + if (target_can_async_p ()) { /* In this case the arg for the continuation is just the point in the exec_cleanups chain from where to start doing @@ -6157,7 +6157,7 @@ until_break_command (char *arg, int from_tty, int anywhere) sal.pc = get_frame_pc (prev_frame); breakpoint = set_momentary_breakpoint (sal, get_frame_id (prev_frame), bp_until); - if (!event_loop_p || !target_can_async_p ()) + if (!target_can_async_p ()) make_cleanup_delete_breakpoint (breakpoint); else make_exec_cleanup_delete_breakpoint (breakpoint); @@ -6166,7 +6166,7 @@ until_break_command (char *arg, int from_tty, int anywhere) proceed (-1, TARGET_SIGNAL_DEFAULT, 0); /* Do the cleanups now, anly if we are not running asynchronously, of if we are, but the target is still synchronous. */ - if (!event_loop_p || !target_can_async_p ()) + if (!target_can_async_p ()) do_cleanups (old_chain); } |