From 4fb67eb55817734a0cb96464fdabd2d362c73d66 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Thu, 8 Oct 1998 23:05:32 +0000 Subject: [PATCH] * gdbtk-hooks.c (gdbtk_add_hooks): Install a hook for (new) file_changed_hook. (gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display to mimic hook's name. (gdbtk_file_changed): New hook function. --- gdb/ChangeLog-gdbtk | 8 ++++++++ gdb/gdbtk-hooks.c | 18 ++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 2848befd02a..84204ed9364 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,11 @@ +1998-10-08 Keith Seitz + + * gdbtk-hooks.c (gdbtk_add_hooks): Install a hook for + (new) file_changed_hook. + (gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display + to mimic hook's name. + (gdbtk_file_changed): New hook function. + Tue Oct 6 22:57:13 1998 Andrew Cagney * configure.in (links): Link gdbtcl2 directory instead of gdbtcl. diff --git a/gdb/gdbtk-hooks.c b/gdb/gdbtk-hooks.c index 3908ddec5c0..4b4a04e59b1 100644 --- a/gdb/gdbtk-hooks.c +++ b/gdb/gdbtk-hooks.c @@ -87,7 +87,8 @@ static void gdbtk_modify_tracepoint PARAMS ((struct tracepoint *)); static void gdbtk_create_breakpoint PARAMS ((struct breakpoint *)); static void gdbtk_delete_breakpoint PARAMS ((struct breakpoint *)); static void gdbtk_modify_breakpoint PARAMS ((struct breakpoint *)); -static void gdbtk_exec_file_changed PARAMS ((char *)); +static void gdbtk_file_changed PARAMS ((char *)); +static void gdbtk_exec_file_display PARAMS ((char *)); static void tk_command_loop PARAMS ((void)); static void gdbtk_call_command PARAMS ((struct cmd_list_element *, char *, int)); static int gdbtk_wait PARAMS ((int, struct target_waitstatus *)); @@ -153,7 +154,8 @@ gdbtk_add_hooks(void) #endif pre_add_symbol_hook = gdbtk_pre_add_symbol; post_add_symbol_hook = gdbtk_post_add_symbol; - exec_file_display_hook = gdbtk_exec_file_changed; + file_changed_hook = gdbtk_file_changed; + exec_file_display_hook = gdbtk_exec_file_display; create_tracepoint_hook = gdbtk_create_tracepoint; delete_tracepoint_hook = gdbtk_delete_tracepoint; @@ -706,10 +708,18 @@ gdbtk_context_change (num) gdb_context = num; } +/* Called from file_command */ +static void +gdbtk_file_changed (filename) + char *filename; +{ + gdbtk_two_elem_cmd ("gdbtk_tcl_file_changed", filename); +} + /* Called from exec_file_command */ static void -gdbtk_exec_file_changed (filename) +gdbtk_exec_file_display (filename) char *filename; { - gdbtk_two_elem_cmd ("gdbtk_tcl_exec_file_changed", filename); + gdbtk_two_elem_cmd ("gdbtk_tcl_exec_file_display", filename); } -- 2.30.2