aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
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
commit683f2885af8be6282b3a89b77b0bf06a616c0040 (patch)
tree5509137dc1e48acb3860e6381fff5d420a322249 /gdb/cli
parent0f2830ff5e67bb402e811cfb857c4f22bd7df455 (diff)
downloadgdb-683f2885af8be6282b3a89b77b0bf06a616c0040.zip
gdb-683f2885af8be6282b3a89b77b0bf06a616c0040.tar.gz
gdb-683f2885af8be6282b3a89b77b0bf06a616c0040.tar.bz2
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/cli')
-rw-r--r--gdb/cli/cli-interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c
index 2761b1c..34a48cb 100644
--- a/gdb/cli/cli-interp.c
+++ b/gdb/cli/cli-interp.c
@@ -43,7 +43,7 @@ struct captured_execute_command_args
/* These implement the cli out interpreter: */
static void *
-cli_interpreter_init (void)
+cli_interpreter_init (int top_level)
{
return NULL;
}