aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-08-31 22:43:21 +0000
committerTom Tromey <tromey@redhat.com>1998-08-31 22:43:21 +0000
commitd5adad6aa25e787acb17d78229a9ef930c102f9e (patch)
treea6a655362de646868df2cbd315483979e58905d4 /gdb/top.c
parentc2242569d0da0874ba6a732dcb086ff23f706dcc (diff)
downloadgdb-d5adad6aa25e787acb17d78229a9ef930c102f9e.zip
gdb-d5adad6aa25e787acb17d78229a9ef930c102f9e.tar.gz
gdb-d5adad6aa25e787acb17d78229a9ef930c102f9e.tar.bz2
* top.c (context_hook): Define.
* gdbtk-hooks.c (context_hook): Don't define.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index b9d759b..d666f43 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -460,6 +460,9 @@ int (*target_wait_hook) PARAMS ((int pid, struct target_waitstatus *status));
void (*call_command_hook) PARAMS ((struct cmd_list_element *c, char *cmd,
int from_tty));
+/* Called when the current thread changes. Argument is thread id. */
+
+void (*context_hook) PARAMS ((int id));
/* Takes control from error (). Typically used to prevent longjmps out of the
middle of the GUI. Usually used in conjunction with a catch routine. */