aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.h
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1998-08-30 07:53:29 +0000
committerMartin Hunt <hunt@redhat.com>1998-08-30 07:53:29 +0000
commit4ff5d55a081fbb280b68d912bf3a4b5f26541b5c (patch)
tree39ec26e18a03d02cc992a5afe7b352eb3b36b6e6 /gdb/gdbtk.h
parentd405c4a1aec90299f768f191e63494407ce84536 (diff)
downloadgdb-4ff5d55a081fbb280b68d912bf3a4b5f26541b5c.zip
gdb-4ff5d55a081fbb280b68d912bf3a4b5f26541b5c.tar.gz
gdb-4ff5d55a081fbb280b68d912bf3a4b5f26541b5c.tar.bz2
Sun Aug 30 00:49:18 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (Gdbtk_Init): Link C variable gdb_context with tcl variable gdb_context_id. * gdbtk-hooks.c (gdbtk_context_change): Implement new hook called context_hook. Called when threads change. * gdbtk.c: Initialize gdb_context. * gdbtk.h: Declare gdb_context. * infrun (wait_for_inferior): Call context_hook. * thread.c (thread_command): Call context_hook. * defs.h: Declare context_hook.
Diffstat (limited to 'gdb/gdbtk.h')
-rw-r--r--gdb/gdbtk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbtk.h b/gdb/gdbtk.h
index a98be7a..a138a33 100644
--- a/gdb/gdbtk.h
+++ b/gdb/gdbtk.h
@@ -120,6 +120,9 @@ typedef struct gdbtk_result {
extern gdbtk_result *result_ptr;
+/* GDB context identifier */
+extern int gdb_context;
+
/*
* These functions are used in all the modules of Gdbtk.
*