aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKeith Seitz <keiths@cygnus>1998-10-08 23:05:32 +0000
committerKeith Seitz <keiths@cygnus>1998-10-08 23:05:32 +0000
commit4fb67eb55817734a0cb96464fdabd2d362c73d66 (patch)
treeea3594baf7b90235f056e8119949843916bdb413 /gdb
parentd367c7b4479c01f8d8b9a71776b1c177433488a4 (diff)
downloadgdb-4fb67eb55817734a0cb96464fdabd2d362c73d66.zip
gdb-4fb67eb55817734a0cb96464fdabd2d362c73d66.tar.gz
gdb-4fb67eb55817734a0cb96464fdabd2d362c73d66.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog-gdbtk8
-rw-r--r--gdb/gdbtk-hooks.c18
2 files changed, 22 insertions, 4 deletions
diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk
index 2848bef..84204ed9 100644
--- a/gdb/ChangeLog-gdbtk
+++ b/gdb/ChangeLog-gdbtk
@@ -1,3 +1,11 @@
+1998-10-08 Keith Seitz <keiths@cygnus.com>
+
+ * 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 <cagney@b1.cygnus.com>
* configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
diff --git a/gdb/gdbtk-hooks.c b/gdb/gdbtk-hooks.c
index 3908dde..4b4a04e 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);
}