summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 2005-01-17 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-01-171-10/+5
| | | | | | | | | | | | | * top.h (source_error, source_pre_error): Delete declaration. * cli/cli-script.c (source_error_allocated, source_error): Delete. (script_from_file, source_cleanup_lines): Do not manipulate source_error_allocated, error_pre_print and source_error. (struct source_cleanup_lines_args): Delete fields old_pre_error, and old_error_pre_print. * top.c (source_error_allocated, source_error) (source_pre_error): Delete. (command_line_input): Do not set error_pre_print. * event-top.c (command_line_handler): Do not set error_pre_print.
* 2005-01-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-01-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * exceptions.h (enum return_reason, RETURN_MASK) (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL) (return_mask, throw_exception, catch_exceptions_ftype) (catch_exceptions_with_msg, catch_errors_ftype, catch_errors) (catch_command_errors_ftype, catch_command_errors): Move to exceptions.h. * exceptions.c, exceptions.h: New files. * top.c: Do not include <setjmp.h>. (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return) (throw_exception, catcher, catch_exceptions) (catch_exceptions_with_msg, struct catch_errors_args) (do_catch_errors, catch_errors, struct captured_command_args) (do_captured_command, catch_command_errors): Move to exceptions.c. * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h". * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto. * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto. * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto. * remote-e7000.c, objc-lang.c, ocd.c: Ditto. * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto. * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto. * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto. * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto. * ada-valprint.c, ada-lang.c: Ditto. * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and exceptions.o. Update all dependencies.
* * top.c (gdb_readline): Always accept "rn" as a line-ending.Mark Kettenis2004-10-141-4/+0
| | | | * event-top.c (gdb_readline2): Likewise.
* 2004-09-13 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-09-131-63/+56
| | | | | | | | | | | | | | | | | | | | | | 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.
* 2004-02-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-02-281-2/+2
| | | | | | | | | | | | * utils.c: Use "", instead of <>, to include readline. tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto. * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto. * source.c, solib.c, exec.c, event-top.c: Ditto. * corelow.c, completer.c, cli/cli-setshow.c: Ditto. * cli/cli-dump.c, cli/cli-cmds.c: Ditto. * Makefile.in: Update all dependencies. (readline_tilde_h, readline_history_h): Define. (readline_headers): Delete.
* 2004-02-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2004-02-191-5/+1
| | | | | | * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT macro, which was part of the now removed Mach 3 port. * utils.c (request_quit): Ditto.
* 2003-11-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | * valops.c (destructor_name_p): Replace STREQN with strncmp. * top.c (command_line_input): Ditto. * objc-exp.y (yylex): Ditto. * minsyms.c (prim_record_minimal_symbol_and_info): Ditto. * jv-exp.y (yylex): Ditto. * f-exp.y (yylex): Ditto. * event-top.c (command_line_handler): Ditto. * environ.c (get_in_environ): Ditto. (set_in_environ): Ditto. * dwarfread.c (handle_producer): Ditto. * dbxread.c (process_one_symbol): Ditto. * c-typeprint.c (c_type_print_base): Ditto. * c-exp.y (yylex): Ditto. 2003-11-06 Andrew Cagney <cagney@redhat.com> * mi-cmd-var.c (mi_cmd_var_set_format): Replace STREQN with strncmp.
* 2003-09-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-211-3/+0
| | | | | | | | | | | | | * breakpoint.c: Eliminate ARGSUSED. * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto. * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto. * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto. * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto. * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto. * remote.c, sol-thread.c, source.c, stabsread.c: Ditto. * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto. * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto. * wince.c, remote-vx.c: Ditto.
* 2003-09-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * alpha-nat.c: Remove some occurances of "register". * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto. * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto. * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto. * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto. * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto. * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto. * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto. * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto. * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto. * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto. * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto. * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto. * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto. * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto. * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto. * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto. * solib.c, somread.c, source.c, sparc-tdep.c: Ditto. * stabsread.c, stack.c, standalone.c, symfile.c: Ditto. * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto. * typeprint.c, utils.c, valarith.c, valops.c: Ditto. * values.c, vax-tdep.c, xcoffread.c: Ditto.
* 2003-08-04 David Carlton <carlton@kealia.com>David Carlton2003-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args to internal_error call. * source.c (forward_search_command): Add "%s" format argument. (reverse_search_command): Ditto. * top.c (quit_confirm): Ditto. * cli/cli-setshow.c (do_setshow_command): Ditto. * cp-valprint.c (cp_print_class_method): Replace {f,}printf_{un,}filtered by {f,}puts_{un,}filtered. (cp_print_class_member): Ditto. * event-top.c (command_line_handler): Ditto. * linux-proc.c (linux_info_proc_cmd): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto. * p-valprint.c (pascal_object_print_class_method): Ditto. (pascal_object_print_class_member): Ditto. * printcmd.c (print_scalar_formatted,printf_command): Ditto. * remote.c (remote_cisco_section_offsets): Ditto. * top.c (command_line_input): Ditto. * utils.c (vwarning,error_stream,quit): Ditto. * valprint.c (print_floating,print_binary_chars) (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto. 2003-08-04 David Carlton <carlton@kealia.com> * mi-main.c (mi_error_last_message): Add "%s" second argument to xasprintf call. 2003-08-04 David Carlton <carlton@kealia.com> * generic/gdbtk.c (gdbtk_source_start_file): Add "%s" first argument to error call. (tk_command): Ditto. (view_command): Ditto.
* * top.h (lim_at_start): Declare.Richard Henderson2003-06-021-7/+3
| | | | | | | | | * main.c (captured_main): Set it. * top.c (lim_at_start): Define. (command_loop): Use it instead of &environ. * event-top.c (command_handler): Likewise. * gdb.base/selftest.exp: Next over lim_at_start initialization.
* 2003-02-12 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2003-02-121-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-05 Jim Ingham <jingham@apple.com>Andrew Cagney2003-02-061-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-05 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-11-051-4/+29
| | | | | | From Jim Ingham <jingham@apple.com>: * event-top.c (gdb_disable_readline): New function. (_initialize_event_loop): Move comment.
* 2002-10-02 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-10-031-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-03 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-07-031-1/+1
| | | | | * event-top.c (command_line_handler): Don't read past beginning of buffer.
* 2002-06-20 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-06-211-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.
* * event-top.c (command_line_handler): Remove useless if.Andreas Schwab2002-03-271-14/+11
|
* Remove else clause to #if UI_OUT.Andrew Cagney2002-01-171-2/+0
|
* Remove obsolete MacOS support.Andrew Cagney2002-01-051-7/+1
|
* * NEWS: Updated.Tom Tromey2001-11-271-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.
* * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: SomeMark Kettenis2001-08-271-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
* * utils.c (query): Remove tui hacks; tui must use the query_hook.Stephane Carrez2001-07-141-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.
* Obsolete MPW as host.Andrew Cagney2001-04-191-5/+5
|
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+1
|
* * event-top.c: Remove duplicate #include <signal.h>.Mark Kettenis2001-02-071-2/+0
|
* * signals.h: Removed.J.T. Conklin2001-02-061-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.
* Replace free() with xfree().Kevin Buettner2000-12-151-9/+9
|
* Corrected spelling in comments:David Anderson2000-09-011-2/+2
| | | | foe->for executin ->execution.
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-2/+1
|
* Replace command_loop_marker() with null_cleanup().Andrew Cagney2000-07-051-1/+1
|
* Eliminate make_cleanup_func from top.cAndrew Cagney2000-05-221-1/+1
|
* 2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2000-03-301-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.
* * event-top.c (_initialize_event_loop): If instream is notEli Zaretskii2000-03-191-8/+19
| | | | connected to a terminal device, turn editing off.
* 2000-03-03 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-03-031-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.
* Add mi/ and testsuite/gdb.mi/ subdirectories.Andrew Cagney2000-02-231-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.
* import gdb-2000-02-02 snapshotJason Molenda2000-02-031-1/+0
|
* import gdb-2000-01-17 snapshotJason Molenda2000-01-181-1/+1
|
* import gdb-1999-10-25 snapshotJason Molenda1999-10-261-0/+1
|
* import gdb-1999-10-04 snapshotJason Molenda1999-10-051-4/+17
|
* import gdb-1999-09-28 snapshotJason Molenda1999-09-281-18/+52
|
* import gdb-1999-09-21Jason Molenda1999-09-221-97/+89
|
* import gdb-1999-09-08 snapshotStan Shebs1999-09-091-0/+2
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-9/+7
|
* import gdb-1999-08-16 snapshotJason Molenda1999-08-161-2/+15
|
* import gdb-1999-08-02 snapshotJason Molenda1999-08-021-2/+1
|
* import gdb-1999-07-19 snapshotJason Molenda1999-07-191-4/+28
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-40/+41
|
* import gdb-1999-07-05 snapshotJason Molenda1999-07-051-15/+88
|
* import gdb-1999-06-28 snapshotJason Molenda1999-06-281-32/+22
|