From 6131622e34fdce69f8f42172a0c2a4e460b2325b Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Wed, 15 Feb 1995 01:45:39 +0000 Subject: * annotate.c, breakpoint.c, defs.h, gdbtk.c, top.c: Replace enable/disable_breakpoint_hook with modify_breakpoint_hook. * gdbtk.c: General cleanups, get rid of unused variables. Redo handling of stdout/stderr to just return output as the result of the tcl command that caused the output. Cleanup -Wall stuff. * (breakpoint_notify): Now returns just action and breakpoint number. * (gdb_get_breakpoint_list): New routine. Does the obvious. * (gdb_get_breakpoint_info): Mostly derived from the old breakpoint_notify, but returns lots more info. * (dsprintf_append_element): Helper routine, works like printf, but appends a tcl element onto the specified DString. Good for building up lists as return values. * (gdbtk_enable/disable_breakpoint): Go away. Replaced with gdbtk_modify_breakpoint. * (*many routines*): Use new result protocol. * (call_wrapper): Make sure that recursive calls don't trash results. * gdbtk.tcl: New windows, autocmd, and breakpoints. * (gdbtk_tcl_fputs): Don't use $current_output_win redirection anymore. It's not needed (in fact, this routine may not be needed anymore). * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint notification protocol. * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove catches. * (interactive_cmd): Use this wrapper around button invocations of many commands. This will catch errors and put the results into the command window. It also updates all the other windows. * Also, change reliefs of most things to sunken. This actually looks better. * (create_file_win): Fix margin binding to allow breakpoints to work again. * (create_asm_win): Use return value of gdb_disassemble instead of implicit I/O to the command window. * (create_command_window): Use new result protocol to get output from commands. --- gdb/top.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index d958c16..9bf018e 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -395,8 +395,7 @@ void (*flush_hook) PARAMS ((FILE *stream)); void (*create_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); -void (*enable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); -void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); +void (*modify_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); /* Called during long calculations to allow GUI to repair window damage, and to check for stop buttons, etc... */ -- cgit v1.1