aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-08-04 20:09:46 +0000
committerPedro Alves <palves@redhat.com>2011-08-04 20:09:46 +0000
commite0dd0826e246e3d39081881db7bcc69ca5ec77a2 (patch)
tree6b3c3ee78337912f4a3becc0ee70162a6d21386b /gdb/top.c
parent79a45e254f090b628473614054ed318d70409239 (diff)
downloadgdb-e0dd0826e246e3d39081881db7bcc69ca5ec77a2.zip
gdb-e0dd0826e246e3d39081881db7bcc69ca5ec77a2.tar.gz
gdb-e0dd0826e246e3d39081881db7bcc69ca5ec77a2.tar.bz2
2011-08-04 Pedro Alves <pedro@codesourcery.com>
* event-loop.c (gdb_do_one_event): Remove `data' parameter. (start_event_loop): Use TRY_CATCH instead of catch_errors. * event-loop.h (gdb_do_one_event): Remove `data' parameter. * top.c (gdb_readline_wrapper): Adjust. * tui/tui-interp.c (tui_command_loop): (_initialize_tui_interp): Don't install it.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 7b98353..da930ca 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -797,8 +797,7 @@ gdb_readline_wrapper (char *prompt)
(*after_char_processing_hook) ();
gdb_assert (after_char_processing_hook == NULL);
- /* gdb_do_one_event argument is unused. */
- while (gdb_do_one_event (NULL) >= 0)
+ while (gdb_do_one_event () >= 0)
if (gdb_readline_wrapper_done)
break;