summaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-14 17:21:08 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-14 17:21:08 +0000
commit7bc8b6dc961c5d389c83fef10a60de55809e1189 (patch)
treeb48695ffd529dcac01c10cb4969024df842f8585 /gdb/tui
parentda0e17dd9df5437f1b1dd8eeb0b9d139a6804d47 (diff)
downloadgdb-7bc8b6dc961c5d389c83fef10a60de55809e1189.tar.gz
Implement MI notification for new threads.
* doc/observer.texi (new_thread): Document. * observer.sh: Forward declare struct thread_info. * thread.c (add_thread): Notify observer. * interps.h (interp_init_ftype): New parameter top_level. (interp_set): Likewise. (top_level_interpreter_data): Declare. * interps.c (interp_set): New parameter top_level. Pass it to interpreter's init function. Remember top level interpreter. (interpreter_exec_cmd): Adjust. (top_level_interpreter_data): New. * main.c (captured_main): Pass 1 for top_level parameter of interp_set. * cli/cli-interp.c (cli_interpreter_init): New parameter top_level. * tui/tui-interp.c (tui_init): New parameter top_level. * mi/mi-interp.c (mi_new_thread): New. (mi_interpreter_init): If top level, register observer for new threads. * Makefile.in (mi-interp.o, thread.o): Update dependencies.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 9abecd4c0b4..ca2e7436bea 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -48,7 +48,7 @@ tui_exit (void)
/* These implement the TUI interpreter. */
static void *
-tui_init (void)
+tui_init (int top_level)
{
/* Install exit handler to leave the screen in a good shape. */
atexit (tui_exit);