aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
AgeCommit message (Collapse)AuthorFilesLines
2003-02-122003-02-12 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-12/+0
* event-top.c (cli_command_loop): Delete declaration. (_initialize_event_loop): Delete function setting event_loop_hook. * event-top.h (cli_command_loop): Declare. Update copyright. (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H. * interps.c (current_interp_command_loop): When event_loop_p, call cli_command_loop.
2003-02-062003-02-05 Jim Ingham <jingham@apple.com>Andrew Cagney1-5/+9
Keith Seitz <keiths@redhat.com> Elena Zannoni <ezannoni@redhat.com> Andrew Cagney <ac131313@redhat.com> * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o". (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c". (SUBDIR_MI_OBS): Add "mi-interp.o". (SUBDIR_MI_SRCS): Add "mi/mi-interp.c". (SFILES): Add "interps.c". (COMMON_OBS): Add "interps.o". (interps_h, mi_main_h): Define. (interps.o, cli-interp.o, mi-interp.o): Add dependencies. (mi-main.o, main.o, event-top.o): Update dependencies. * cli/cli-interp.c: New file. * interps.h, interps.c: New files. * top.c: (gdb_init): Don't install the default interpreter, handed by captured_main. * main.c: Include "interps.h". (interpreter_p): Note that it should malloc'ed. (captured_command_loop): Call current_interp_command_loop. (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use xfree and xstrdup when updating interpreter_p. Install the default interpreter. Add hack to stop mi1's copyright notice being encoded. * event-top.h (gdb_setup_readline): Declare. (gdb_disable_readline): Declare. * event-top.c: Include "interps.h". (display_gdb_prompt): Call current_interp_display_prompt_p. (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr, gdb_stdlog, and gdb_stdtarg. (_initialize_event_loop): Don't call gdb_setup_readline. * cli-out.c (cli_out_set_stream): New function. * cli-out.h (cli_out_set_stream): Declare.
2002-11-052002-11-05 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-4/+29
From Jim Ingham <jingham@apple.com>: * event-top.c (gdb_disable_readline): New function. (_initialize_event_loop): Move comment.
2002-10-032002-10-02 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-4/+17
* event-top.c (gdb_setup_readline): New function. Code moved from _initialize_event_loop(). (_initialize_event_loop): Call gdb_setup_readline().
2002-07-032002-07-03 Martin M. Hunt <hunt@redhat.com>Martin Hunt1-1/+1
* event-top.c (command_line_handler): Don't read past beginning of buffer.
2002-06-212002-06-20 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-2/+4
* event-top.c (command_handler): Don't use space_at_cmd_start unless there is sbrk() on the host. Assign time and space data to union fields of the appropriate length.
2002-03-27 * event-top.c (command_line_handler): Remove useless if.Andreas Schwab1-14/+11
2002-01-17Remove else clause to #if UI_OUT.Andrew Cagney1-2/+0
2002-01-05Remove obsolete MacOS support.Andrew Cagney1-7/+1
2001-11-27 * NEWS: Updated.Tom Tromey1-0/+6
* event-loop.c (start_event_loop): Call after_char_processing_hook. * event-top.h (after_char_processing_hook): Declare. * event-top.c (rl_callback_read_char_wrapper): Call after_char_processing_hook. (after_char_processing_hook): New global. * top.c (operate_saved_history): New global. (gdb_rl_operate_and_get_next): New function. (init_main): Add the operate-and-get-next defun. (gdb_rl_operate_and_get_next_completion): New function.
2001-08-27* event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: SomeMark Kettenis1-1/+2
gratuitious whitespace changes. [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined. * top.c: Remove redundant logic to define HAVE_SIGSETMASK. (sigsetmask) Don't define macro. (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from async_stop_sig from event-top.c. [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined. * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical order. Add sigsetmask. (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in alphabetical order. * config/xm-aix4.h, config/alpha/xm-alphalinux.h, config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h (HAVE_SIGSETMASK): Remove. * aclocal.m4, config.in, configure
2001-07-14 * utils.c (query): Remove tui hacks; tui must use the query_hook.Stephane Carrez1-7/+0
* top.c (command_loop): Remove tui insert_mode hacks; don't call tuiCleanUp because this must be made with atexit by tui. * symfile.c (symbol_file_command): Remove call to TUIDO * stack.c (show_and_print_stack_frame_stub): Remove tui check; not necessary when using the selected frame hooks. (print_stack_frame_stub): Likewise. (print_frame_info_base): Likewise. (print_frame_info): Likewise. (up_silently_command): Likewise. (down_silently_command): Likewise. (show_stack_frame): Likewise for TUIDO. (select_frame): Likewise. (select_and_print_frame): Likewise. (stack_publish_stopped_with_no_frame): Remove. (select_and_maybe_print_frame): Remove. * main.c (captured_main): Remove tui_fileopen and tuiInit; tui must use the initialize ui hook. * infrun.c (normal_stop): Remove call to TUIDO; tui must use the selected frame hooks. * event-top.c (command_handler): Remove tui insert_mode hack. * defs.h: Remove TUIDO; Only include tui.h. * breakpoint.c (mention): Remove calls to TUIDO. (delete_breakpoint): Remove tui hacks; tui must install the breakpoint hooks.
2001-04-19Obsolete MPW as host.Andrew Cagney1-5/+5
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+1
2001-02-07* event-top.c: Remove duplicate #include <signal.h>.Mark Kettenis1-2/+0
2001-02-06* signals.h: Removed.J.T. Conklin1-1/+1
* event-top.c (#include <signal.h>): Changed from signals.h. * inflow.c: Likewise. * mac-xdep.c: Likewise. * ser-pipe.c: Likewise. * ser-tcp.c: Likewise. * standalone.c: Likewise. * top.c: Likewise. * utils.c: Likewise. * Makefile.in: Removed signals.h from dependencies.
2000-12-15Replace free() with xfree().Kevin Buettner1-9/+9
2000-09-01Corrected spelling in comments:David Anderson1-2/+2
foe->for executin ->execution.
2000-07-30Protoization.Kevin Buettner1-2/+1
2000-07-05Replace command_loop_marker() with null_cleanup().Andrew Cagney1-1/+1
2000-05-22Eliminate make_cleanup_func from top.cAndrew Cagney1-1/+1
2000-03-302000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-4/+4
* defs.h (struct continuation_arg): make 'data' a union, to avoid casting problems when int and pointer are not the same size. * event-top.c (command_handler): use data as a union. (command_line_handler_continuation): ditto. * infcmd.c (step_1_continuation): use data as a union. Re-indent. (step_once): ditto. (finish_command_continuation): ditto. (finish_command): ditto. * breakpoint.c (until_break_command): use data as a union. (until_break_command_continuation): ditto. * utils.c (add_intermediate_continuation): fix typo in comment.
2000-03-19 * event-top.c (_initialize_event_loop): If instream is notEli Zaretskii1-8/+19
connected to a terminal device, turn editing off.
2000-03-032000-03-03 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-9/+9
* defs.h (struct continuation_arg): Change type of field 'data' from PTR to void *. * event-loop.h: Eliminate uses of PTR, use 'void *' instead. * event-top.c: Ditto.
2000-02-23Add mi/ and testsuite/gdb.mi/ subdirectories.Andrew Cagney1-0/+7
Add --enable-gdbmi option to configury. Add mi rules to Makefile.in Add mi conditional output to event-top.c infrun.c main.c top.c. Add -i=mi option.
2000-02-03import gdb-2000-02-02 snapshotJason Molenda1-1/+0
2000-01-18import gdb-2000-01-17 snapshotJason Molenda1-1/+1
1999-10-26import gdb-1999-10-25 snapshotJason Molenda1-0/+1
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-4/+17
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-18/+52
1999-09-22import gdb-1999-09-21Jason Molenda1-97/+89
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-0/+2
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-9/+7
1999-08-16import gdb-1999-08-16 snapshotJason Molenda1-2/+15
1999-08-02import gdb-1999-08-02 snapshotJason Molenda1-2/+1
1999-07-19import gdb-1999-07-19 snapshotJason Molenda1-4/+28
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-40/+41
1999-07-05import gdb-1999-07-05 snapshotJason Molenda1-15/+88
1999-06-28import gdb-1999-06-28 snapshotJason Molenda1-32/+22
1999-06-21import gdb-1999-06-21 snapshotJason Molenda1-34/+41
1999-06-14import gdb-1999-06-14 snapshotJason Molenda1-105/+168
1999-05-25import gdb-1999-05-25 snapshotJason Molenda1-8/+11
1999-05-11import gdb-1999-05-10Stan Shebs1-0/+950