+Wed Jul 5 20:28:32 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * top.h (command_loop_marker), top.c (command_loop_marker):
+ Delete.
+ * event-top.c (command_handler), top.c (simplified_command_loop,
+ command_loop): Use null_cleanup instead of command_loop_marker.
+
Wed Jul 5 20:09:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
* event-loop.c: Include either <poll.h> or <sys/poll.h>.
static char *readline_line_completion_function (char *, int);
-/* NOTE 1999-04-29: this function will be static again, after we make the
- event loop be the default command loop for gdb, and we merge
- event-top.c into this file, top.c */
-/* static */ void command_loop_marker (void *);
-
static void while_command (char *, int);
static void if_command (char *, int);
}
}
-/* ARGSUSED */
-/* NOTE 1999-04-29: This function will be static again, once we modify
- gdb to use the event loop as the default command loop and we merge
- event-top.c into this file, top.c */
-/* static */ void
-command_loop_marker (void *foo)
-{
-}
-
/* Read commands from `instream' and execute them
until end of file or error reading instream. */
quit_flag = 0;
if (instream == stdin && stdin_is_tty)
reinitialize_more_filter ();
- old_chain = make_cleanup (command_loop_marker, 0);
+ old_chain = make_cleanup (null_cleanup, 0);
#if defined(TUI)
/* A bit of paranoia: I want to make sure the "insert_mode" global
quit_flag = 0;
if (instream == stdin && stdin_is_tty)
reinitialize_more_filter ();
- old_chain = make_cleanup (command_loop_marker, 0);
+ old_chain = make_cleanup (null_cleanup, 0);
/* Get a command-line. */
command = (*read_input_func) (instream == stdin ?
extern int quit_confirm (void);
extern void quit_force (char *, int);
extern void quit_command (char *, int);
-extern void command_loop_marker (void *);
extern int quit_cover (PTR);
extern void execute_command (char *, int);