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.
This commit is contained in:
Martin Hunt
1998-08-30 07:53:29 +00:00
parent d405c4a1ae
commit 4ff5d55a08
6 changed files with 44 additions and 6 deletions

View File

@@ -518,7 +518,8 @@ see the IDs of currently known threads.", num);
error ("Thread ID %d has terminated.\n", num);
switch_to_thread (tp->pid);
if (context_hook)
context_hook (num);
printf_filtered ("[Switching to %s]\n", target_pid_to_str (inferior_pid));
print_stack_frame (selected_frame, selected_frame_level, 1);
}