aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
AgeCommit message (Collapse)AuthorFilesLines
2002-08-18* top.c (gdb_rl_operate_and_get_next): Make sureMark Kettenis1-2/+16
operate-and-get-next functions correctly even when the history list is completely filled.
2002-07-24 * defs.h (gdb_readline_wrapper): Declare.Tom Tromey1-1/+24
* utils.c (prompt_for_continue): Use gdb_readline_wrapper. * tracepoint.c (read_actions): Use gdb_readline_wrapper. * top.c (gdb_readline_wrapper): New function. (command_line_input): Use it.
2002-07-11Fix some K&R isms.Andrew Cagney1-1/+1
2002-07-032002-07-03 Martin M. Hunt <hunt@redhat.com>Martin Hunt1-2/+2
* top.c (execute_command): Use cmd_func() and cmd_func_p(). * cli/cli-decode.c (cmd_func_p): New function. (cmd_func): New function. * command.h: Add cmd_func() and cmd_func_p().
2002-04-23* findvar.c (extract_signed_integer): Cast printf argumentJason Thorpe1-2/+2
to suppress format warning. (extract_unsigned_integer): Likewise. * infcmd.c (registers_info): Likewise. * top.c (get_prompt_1): Likewise. * valops.c (value_assign): Likewise. * valprint.c (print_decimal): Likewise.
2002-03-282002-03-27 Michael Snyder <msnyder@redhat.com>Michael Snyder1-2/+2
* breakpoint.c (_initialize_breakpoint): Clean up help string. * infcmd.c (_initialize_infcmd): Ditto. * language.c (_initialize_language): Ditto. * symfile.c (_initialize_symfile): Ditto. * top.c (_init_main): Ditto. * cli/cli-cmds.c (init_cli_cmds): Ditto.
2002-03-24* command.h: Update copyright.Andrew Cagney1-0/+1
(struct cmd_list_element): Replace definition with opaque declaration. (enum cmd_types): Document that it will eventually be moved to cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros. (MALLOCED_REPLACEMENT): Delete macro. * Makefile.in (cli_decode_h): Add $(command_h). (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h). * top.c: Include "cli/cli-decode.h". * completer.c: Include "cli/cli-decode.h". * maint.c: Include "cli/cli-decode.h". * cli/cli-decode.h: Include "command.h". (enum command_class): Delete. (enum cmd_types): Comment out. (enum cmd_auto_boolean): Delete. (enum var_types): Delete.
2002-03-17* command.h: (execute_cmd_post_hook): Declare.Andrew Cagney1-12/+2
(execute_cmd_pre_hook): Declare. * cli/cli-script.c (clear_hook_in_cleanup): New function. (execute_cmd_post_hook, execute_cmd_pre_hook): New functions. Execute pre/post hook while ensuring that afterwords hook_in is cleared. * top.c (execute_command): Use execute_cmd_post_hook, and execute_cmd_pre_hook to execute pre/post commands. * infrun.c (normal_stop): Pass stop_command and not pre_hook to hook_stop_stub. (hook_stop_stub): Call execute_cmd_pre_hook.
2002-03-06* cli/cli-decode.c (set_cmd_completer): New function.Andrew Cagney1-1/+1
* command.h (set_cmd_completer): Declare. * cli/cli-decode.h (set_cmd_completer): Ditto. * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer. * cli/cli-cmds.c (init_cli_cmds): Ditto. * win32-nat.c (_initialize_inftarg): Ditto. * remote-rdi.c (_initialize_remote_rdi): Ditto. * proc-api.c (_initialize_proc_api): Ditto. * hppa-tdep.c (_initialize_hppa_tdep): Ditto. * source.c (_initialize_source): Ditto. * exec.c (_initialize_exec): Ditto. * solib.c (_initialize_solib): Ditto. * top.c (init_main): Ditto. * tracepoint.c (_initialize_tracepoint): Ditto. * symfile.c (_initialize_symfile): Ditto. * printcmd.c (_initialize_printcmd): Ditto. * infcmd.c (_initialize_infcmd): Ditto. * corefile.c (_initialize_core): Ditto.
2002-02-23* cli/cli-decode.c (cmd_cfunc_eq): New function.Andrew Cagney1-1/+1
* command.h (cmd_cfunc_eq): Declare. * cli/cli-decode.h (cmd_cfunc_eq): Ditto. * cli/cli-cmds.h (is_complete_command): Change parameter to a ``struct cmd_list_element *''. * cli/cli-cmds.c (is_complete_command): Update. Use cmd_cfunc_eq. * top.c (execute_command): Pass the command to is_complete_command. * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2002-02-10* defs.h (throw_exception): Rename return_to_top_level. UpdateAndrew Cagney1-5/+5
comments. * utils.c (error_stream, internal_verror, quit): Ditto. * top.c (throw_exception, catcher): Ditto. * sparclet-rom.c (sparclet_load): Ditto. * remote.c (interrupt_query, minitelnet): Ditto. * remote-sds.c (interrupt_query): Ditto. * remote-mips.c (mips_error, mips_kill): Ditto. * ocd.c (interrupt_query): Ditto. * monitor.c (monitor_interrupt_query): Ditto. * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto. * target.h: Update comment. * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2002-02-05* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.Andrew Cagney1-7/+16
(do_sfunc, set_cmd_sfunc): New functions. * command.h (struct cmd_list_element): Add field func. * cli/cli-decode.h (struct cmd_list_element): Ditto. * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare. * cli/cli-decode.h: Ditto. * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc. (help_all, help_cmd_list): Ditto. (find_cmd, complete_on_cmdlist): Ditto. * top.c (execute_command): Ditto. * cli/cli-setshow.c (do_setshow_command): Call func instead of function.sfunc. * infcmd.c (notice_args_read): Fix function signature. * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc. * cli/cli-decode.c (add_set_cmd): Ditto. * utils.c (initialize_utils): Ditto. * maint.c (_initialize_maint_cmds): Ditto. * infrun.c (_initialize_infrun): Ditto. * demangle.c (_initialize_demangler): Ditto. * remote.c (add_packet_config_cmd): Ditto. * mips-tdep.c (_initialize_mips_tdep): Ditto. * cris-tdep.c (_initialize_cris_tdep): Ditto. * proc-api.c (_initialize_proc_api): Ditto. * kod.c (_initialize_kod): Ditto. * valprint.c (_initialize_valprint): Ditto. * top.c (init_main): Ditto. * infcmd.c (_initialize_infcmd): Ditto. * corefile.c (_initialize_core): Ditto. * arm-tdep.c (_initialize_arm_tdep): Ditto. * arch-utils.c (initialize_current_architecture): Ditto. (_initialize_gdbarch_utils): Ditto. * alpha-tdep.c (_initialize_alpha_tdep): Ditto. * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc. * wince.c (_initialize_inftarg): Ditto. * symfile.c (_initialize_symfile): Ditto. * mips-tdep.c (_initialize_mips_tdep): Ditto. * language.c (_initialize_language): Ditto. * arc-tdep.c (_initialize_arc_tdep): Ditto.
2002-02-02s/NO_FUNCTION/NULL/Andrew Cagney1-1/+1
2002-01-202002-01-20 Michael Chastain <mec@shout.net>Michael Chastain1-1/+1
* top.c (print_gdb_version): Bump copyright year to 2002.
2002-01-17Remove else clause to #if UI_OUT.Andrew Cagney1-4/+0
2002-01-05Remove obsolete MacOS support.Andrew Cagney1-7/+4
2001-11-27 * NEWS: Updated.Tom Tromey1-0/+50
* 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-11-20 * top.c (gdb_init): Call init_ui_hook before initializingKeith Seitz1-4/+9
the default UI.
2001-11-10s/value_ptr/struct value */Andrew Cagney1-2/+2
2001-10-21Don't print ``(MI_OUT)'' at startup.Andrew Cagney1-5/+0
2001-10-16* value.h (value_as_address): Rename value_as_pointer.Andrew Cagney1-1/+1
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c, jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c, values.c: Update.
2001-09-07* defs.h (enum return_reason): Renumber so that all values areAndrew Cagney1-34/+81
negative. (RETURN_MASK): Negate reason. (catch_exception_ftype): Declare. (catch_exceptions): Declare. * top.c (catcher): New function, based on catch_errors. Add in parameter func_uiout and out parameters func_val, func_caught and func_cleanup. Change type of func to catch_exceptions_ftype. Save/restore uiout. (struct catch_errors_args): Define. (do_catch_errors): New function. (catch_errors): Rewrite, use do_catch_errors and catcher. (catch_exceptions): New function, use catcher.
2001-08-27* event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: SomeMark Kettenis1-13/+9
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-08-14* top.c (SIGSETJMP): Protect env argument with parentheses.Christopher Faylor1-3/+3
(SIGLONGJMP): Protect env argument with parentheses.
2001-08-01* defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)Andrew Cagney1-0/+1
(HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (HOST_LONG_DOUBLE_FORMAT, DOUBLEST) (floatformat_to_doublest, floatformat_from_doublest) (floatformat_is_negative, floatformat_is_nan) (floatformat_mantissa, store_floating) (extract_floating): Move declaration from here. * doublest.h: To here. New file. * utils.c (get_field, floatformat_to_doublest, put_field) (ldfrexp, floatformat_from_doublest, floatformat_is_negative) (floatformat_is_nan, floatformat_mantissa) (FLOATFORMAT_CHAR_BIT): Move from here. * doublest.c: To here. New file. * findvar.c (store_floating, extract_floating): Move from here. * doublest.c: To here. * Makefile.in (SFILES): Add doublest.c. (COMMON_OBS): Add doublest.o. (doublest.o): Specify dependencies. (doublest_h): Define. * config/m88k/tm-m88k.h: Include "doublest.h". * config/i960/tm-i960.h: Ditto. * config/i386/tm-symmetry.h: Ditto. * rs6000-tdep.c, valarith.c: Ditto. * valprint.c, stabsread.c, sh-tdep.c: Ditto. * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto. * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto. * alpha-tdep.c, ax.h, expression.h: Ditto. * sh-tdep.c, parse.c, top.c, value.h: Ditto. * Makefile.in (arm-tdep.o): Add $(doublest_h). (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto. (rs6000-tdep.o, stabsread.o, valarith.o): Ditto. (values.o, valprint.o, arm-linux-tdep.o): Ditto. (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto. (parser_defs_h): Ditto. (expression_h): Add $(doublest_h) and $(symtab_h).
2001-07-172001-07-17 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-2/+2
* top.c (catch_errors): Convert PTR to void * in parameters list. (quit_cover): Ditto.
2001-07-162001-07-16 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-2/+0
* top.c (show_commands): Remove extern decl of history_get, it's already in readline/history.h.
2001-07-162001-07-16 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-21/+4
* top.c (is_complete_command, init_cmd_lists, init_cli_cmds, execute_user_command, do_setshow_command, get_prompt, init_proc, serial_log_command): Remove extern declarations. Include cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h. * gdbcmd.h (execute_user_command): Remove declaration, it's already in cli/cli-script.h. * command.h (do_setshow_command): Remove declaration, it's already in cli/cli-setshow.h. * infrun.c: Include "cli/cli-script.h" for execute_user_command. * Makefile.in (infrun.o): Update dependencies. (top.o): Ditto. * cli/cli-setshow.h: Add comment for do_setshow_command.
2001-07-152001-07-15 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-120/+79
* top.c (quit_cover, float_handler): Move definition up before use. (gdb_init): Move to end of file, to avoid calls to not yet defined functions. Delete prototypes.
2001-07-152001-07-15 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-20/+0
* top.c (readline_line_completion_function, noop_completer): Move from here... * completer.c (readline_line_completion_function, noop_completer): ...to here. * gdbcmd.h (readline_line_completion_function, noop_completer): Move declarations from here... * completer.h (readline_line_completion_function, noop_completer): ...to here. * corefile.c: Include completer.h. * source.c: Ditto. * symfile.c: Ditto. * Makefile.in: Update dependencies.
2001-07-14 * utils.c (query): Remove tui hacks; tui must use the query_hook.Stephane Carrez1-25/+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-05-17 * top.c (user_args): Remove unused declaration.Eli Zaretskii1-15/+0
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-3/+4
2001-04-19Obsolete MPW as host.Andrew Cagney1-5/+5
2001-04-192001-04-18 Martin M. Hunt <hunt@redhat.com>Martin Hunt1-12/+13
* top.c (gdb_init): Don't call cli_out_new() to create global uiout if init_ui_hook is set. uiout will have to be initialized there.
2001-04-052001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-0/+6
From Jimmy Guo <guo@cup.hp.com> * top.c (init_main): set prompt if annotation_level>1, this is necessary when annotation_level is set to 2 via --annotate=2 command line option.
2001-03-07 * top.c (init_main): Make `set history file name' complete on fileEli Zaretskii1-5/+6
names.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
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.
2001-01-252001-01-24 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-1/+1
* top.c (print_gdb_version): Update Copyright year.
2000-12-202000-12-20 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-2/+2
* Makefile.in (UIOUT_CFLAGS): New macro. CFLAGS needed for uiout code to be compiled. Defines UI_OUT. (SUBDIR_MI_CFLAGS): Defines MI_OUT, not UI_OUT. (INTERNAL_WARN_CFLAGS): Also include UIOUT_CFLAGS. * configure.in (UIOUT_CFLAGS): New configuration variable. (--with-uiout): New configuration option. Causes uiout code to be compiled, instead of the old *printf one. * configure: Regenerate. * top.c (print_gdb_version): Test for and print MI_OUT, not UI_OUT. * testsuite/lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
2000-12-15Replace free() with xfree().Kevin Buettner1-7/+7
2000-12-012000-12-01 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-1881/+34
* cli/cli-decode.c: New file. Handle lists of commands, their decoding and documentation. (add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc, add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd, add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list, help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1, undef_cmd_error, lookup_cmd, deprecated_cmd_warning, lookup_cmd_composition, complete_on_cmdlist, complete_on_enum): Moved here from command.c. (add_info, add_info_alias, add_com, add_com_alias): Moved here from top.c. * cli/cli-decode.h: Definitions/declarations for the above. * cli/cli-cmds.c: New file. GDB CLI commands. (error_no_arg, info_command, show_command, help_command, show_version, quit_command, pwd_command, cd_command, echo_command, shell_escape, make_command, show_user, set_debug, show_debug, init_cmd_lists): Moved here from top.c. (apropos_command): Moved here from command.c. (complete_command, source_command): Moved here (part) from top.c. (is_complete_command): New function. Checks if a command is the "complete" command. (init_cli_cmds): New function. Add commands to the CLI (from code previously in top.c. * cli/cli-cmds.h: Definitions/declarations for the above. * cli/cli-script.c: New file. GDB CLI command scripting. (build_command_line, get_command_line, print_command_lines, print_command_line, execute_user_command, execute_control_command, while_command, if_command, arg_cleanup, setup_user_args, locate_arg, insert_args, realloc_body_list, read_next_line, recurse_read_control_structure, read_command_lines, free_command_lines, do_free_command_lines_cleanup, make_cleanup_free_command_lines, validate_comname, user_defined_command, define_command, document_command, source_cleanup_lines, do_fclose_cleanup, show_user_1): Moved here from top.c. (script_from_file): New function. Implements execution of a script contained in a file (part of code for the source_command() that used to exist in top.c). * cli/cli-script.h: Definitions/declarations for the above. * cli/cli-setshow.c: New file. Handle set and show GDB CLI commands. (parse_auto_binary_operation, parse_binary_operation, do_setshow_command, cmd_show_list): Moved here from command.c. * cli/cli-setshow.h: Definitions/declarations for the above. * top.c: Remove all CLI code, except the command loop. (gdb_init): Call init_cli_cmds(). * command.c: Remove obsolete file. * command.h: Mark as DEPRECATED. * gdbcmd.h: Ditto. * call-cmds.h: Ditto. * Makefile.in (SFILES): Remove command.c. (COMMON_OBS): Remove command.o. (command.o): Remove obsolete target. (cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros. Refer to CLI header files. (cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets. (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS, SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN, SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli subdirectory. * configure.in (enable_gdbcli): New option. Include the CLI in the executable (cannot be disabled yet). (CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS, CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add the corresponding SUBDIR_CLI_* macros if CLI requested. * configure: Regenerate.
2000-12-012000-11-30 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-386/+1
* linespec.h: New file. Declarations for linespec.c. * linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c, symtab.c, tracepoint.c: Include the above. * completer.c: New file. Line completion stuff for GDB. (get_gdb_completer_word_break_characters, get_gdb_completer_quote_characters): New functions. Accessors for useful completer internal data. (filename_completer, line_completion_function, skip_quoted): Moved here from top.c. * completer.h: New file. Declarations for the above. * linespec.c (decode_line_1): Use get_gdb_completer_word_break_characters and get_gdb_completer_quote_characters. * top.c: Include completer.h. (filename_completer, line_completion_function, skip_quoted): Moved to completer.c. * corefile.c, exec.c, source.c, symfile.c, linespec.c: Include completer.h. * Makefile.in (SFILES): Add completer.c. (COMMON_OBS): Add completer.o. (completer.o): New target. (linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o, symtab.o, tracepoint.o): Add linespec.h to dependencies list. (corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h to dependencies list.
2000-11-27* remote.c (remote_write_bytes): Add default case to switchAndrew Cagney1-0/+2
initializing ``todo''. Ditto for ``nr_bytes''. * top.c (catch_errors): Always initialize ``val''. * solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size returning an unknown size. * gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''. * breakpoint.c (break_at_finish_at_depth_command_1): Initialise extra_args to NULL. (break_at_finish_command_1): Ditto.
2000-11-16 * tracepoint.c (trace_find_tracepoint_command): Replace call toDavid Taylor1-1/+1
parse_and_eval_address with a call to parse_and_eval_long as we are evaluating an integer, not an address. * top.c (show_commands): Ditto.
2000-11-062000-11-06 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser1-9/+57
From Steven Johnson <sbjohnson@ozemail.com.au>: This set of changes add "hookpost-" as an expansion on the original hooking of commands to GDB. A Hook may now be run "AFTER" execution of a command as well as before. * command.h (struct cmd_list_element): Changed elements hook and hookee to hook_pre and hookee_pre respectively. Added hook_post and hookee_post for the post hook command operation. Added hook_in so that an executing hook can be flagged to prevent recursion. * command.c (add_cmd): Changed initilization of cmd_list_element to reflect above changes. (delete_cmd): Remove both pre and post hooks. (help_cmd): Notify that the command has pre and/or post hooks. * infrun.c (normal_stop): Change references to hook_pre from hook. * top.c (execute_command): Run both pre and post hooks. (define_command): Allow definition of both pre and post hooks. The definition of pre-hooks is done as before, with the "hook-" prefix for backward compatibility.
2000-10-31Protoization.Kevin Buettner1-15/+9
2000-10-23Corrected spelling errors in commentsDavid Anderson1-4/+4
2000-08-01* top.c (get_prompt_1), tracepoint.c (replace_comma): UpdateAndrew Cagney1-1/+2
function signatures so that they match catch_errors and make_cleanup callbacks. * tracepoint.c (encode_actions): Fix arguments passed to stringify_collection_list.