This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/gdb tui/tui-hooks.c mi/mi-main.h mi/mi-mai ...


CVSROOT:	/cvs/src
Module name:	src
Branch: 	nickrob-async-20060513-branch
Changes by:	nickrob@sourceware.org	2006-05-12 07:40:31

Modified files:
	gdb/tui        : tui-hooks.c 
	gdb/mi         : mi-main.h mi-main.c mi-interp.c 
	gdb/cli        : cli-interp.c 
	gdb            : wrapper.h version.in top.c target.h target.c 
	                 remote.c main.c linux-thread-db.c interps.h 
	                 interps.c infrun.c inf-loop.c inf-child.c 
	                 i386-linux-nat.c exec.c event-top.h event-top.c 
	                 event-loop.h event-loop.c defs.h cli-out.h 
	                 cli-out.c ChangeLog 
Added files:
	gdb            : async-nat-sigthread.h async-nat-sigthread.c 
	                 async-nat-inferior.h async-nat-inferior.c 
	                 TODO.async README.async PROBLEMS.async 

Log message:
	2006-05-13    Changes based on Apple GDB (CVS repository 5th Sept 2005)
	
	* async-nat-inferior.c, async-nat-inferior.h,
	* async-nat-sigthread.c, async-nat-sigthread.h: New files
	
	* linux-nat.c: Include async-nat-inferior.h.
	(linux_nat_wait): Add extra argument.  If target_can_async_p
	do something completely different.
	
	* interps.h (interp_set, interp_set_quiet): New externs.
	
	* interps.c (interp_set): Make asynchronous.
	(interp_set_quiet): Don't make static.
	(current_interp_command_loop): Call functions with new arguments.
	
	* target.h (target_wait): Add extra argument.
	(gdb_override_async, gdb_set_async_override) New externs.
	(target_can_async_p): Make conditional on gdb_override_async.
	
	* target.c (gdb_override_async): New variable.
	(gdb_set_async_override, do_restore_target_async_mask):
	New functions.
	(debug_to_wait): Add extra argument.
	
	* linux-thread-db.c (thread_db_wait): Add extra argument.
	
	* wrapper.h (safe_execute_command): Declare structure.
	
	* top.c (*deprecated_target_wait_hook): Add extra argument.
	(read_command_file): Make asynchronous.
	
	* remote.c (remote_wait, remote_async_wait): Add extra argument.
	
	* infrun.c: Include event-top.h
	(wait_for_inferior, fetch_inferior_event): Add extra argument to
	target_wait.
	(proceed): Set target_executing = 0.
	(handle_inferior_event): Call async_disable_stdin if async.
	
	* inf-ptrace.c: Include inf-loop.h, async-nat-inferior.h.
	(inf_ptrace_him): Create a signal thread.
	(inf_ptrace_wait): Add extra argument to target_wait.
	
	* inf-loop.c (inferior_event_handler, complete_execution):
	Changes for asynchronous operation (copied verbatim).
	
	* inf-child.c: Include async-nat-inferior.h.
	(inf_child_target): Use methods async_terminal_inferior
	and async_terminal_ours.
	
	* i386-linux-nat.c: Include inf-loop.h, async-nat-inferior.h.
	(i386_linux_resume): Call gdb_process_events and then
	async methods.
	
	* exec.c: Include event-loop.h, async-nat-inferior.h.
	(async_file_handler, standard_async, standard_is_async_p)
	(standard_can_async_p): New functions.
	(init_exec_ops): Initialise above methods.
	
	* event-top.h (cli_command_loop): Make argument void*.
	
	* event-top.c (display_gdb_prompt, async_enable_stdin)
	(async_disable_stdin, handle_sigint, async_request_quit)
	(gdb_setup_readline, _initialize_event_loop):
	Changes for asynchronous operation (copied verbatim).
	(cli_command_loop): Make argument void*.
	
	* event-loop.h (gdb_client_data): Move typedef to defs.h.
	(gdb_create_event): Declare.
	(event_handler_func): Move typedef from event-loop.c.
	
	* event-loop.c (use_poll): Set to 0.
	(gdb_queue_event, gdb_create_event): New functions.
	(async_queue_event): Don't make static.
	(create_file_event): Use gdb_create_event.
	(gdb_event): Change component from int to void*.
	(process_event, handle_file_event, handle_timer_event):
	Change according to gdb_event.
	(event_handler_func): Move typedef to event-loop.c.
	
	* defs.h: (gdb_mi_run_status, event_loop_p): New externs.
	(gdb_client_data): Move typedef from event-loop.h.
	(*deprecated_command_loop_hook): Make argument void*.
	(*deprecated_target_wait_hook): Add argument.
	
	* cli-out.h (cli_quoted_out_new): Declare.
	
	* cli-out.c (cli_quoted_out_new): New function.
	Include mi/mi-console.h.
	
	* cli/cli-interp.c: Include inferior.h, mi/mi-console.h.
	(safe_execute_command): Make static.
	(cli_interpreter_resume, cli_interpreter_exec):
	Make asynchronous.
	(cli_quoted_interpreter_resume): New function.
	(_initialize_cli_interp): Add li_command_loop to procs.
	Initialize the console-quoted interpreter.
	
	* tui/tui-hooks.c (tui_target_wait_hook): Add extra argument.
	
	* mi/mi-main.h (mi_dont_register_continuation)
	(current_command_token,  mi_interp, mi_interpreter_exec_continuation)
	(mi_continuation_arg): New externs.
	(mi_setup_continuation_arg): Declare.
	
	* mi/mi-main.c: Include wrapper.h.
	(struct mi_continuation_arg): New structure.
	(mi_interpreter_exec_continuation): Move to mi-interp.c.
	(mi_execute_async_cli_command)
	(mi_exec_async_cli_cmd_continuation): Make asynchronous.
	(mi_setup_continuation_arg): New function.
	
	* mi/mi-interp.c (mi_interpreter_exec_continuation):
	Move from mi-main.c
	(mi_cmd_interpreter_exec): Switch interpreters.  Make
	asynchronous.
	(mi1_command_loop, mi2_command_loop, mi3_command_loop):
	Make argument void*.
	
	* Makefile.in (async_nat_inferior_h, async_nat_sigthread_h):
	New variables.
	(gdb$(EXEEXT), $(TUI)$(EXEEXT)): Link with libpthread.
	(async-nat-inferior.o, async-nat-sigthread.o): New rules.
	(COMMON_OBS): Add above object files.
	(exec.o, i386-linux-nat.o, inf-ptrace.o, linux-nat.o):
	Update dependencies.
	
	2006-05-13  Nick Roberts  <nickrob@snap.net.nz>
	
	* main.c: (event_loop_p): Re-instate variable.
	(captured_main): Re-instate async/noasync option.
	(print_gdb_help): Describe option again.
	
	* exec.c(init_exec_ops): Only initialise async methods with async
	option.
	
	* inf-ptrace.c (inf_ptrace_him): Only reate a signal thread with
	async option.
	
	* README.async, TODO.async, PROBLEMS.async: New files.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/tui/tui-hooks.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.27&r2=1.27.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-main.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.3&r2=1.3.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-main.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.84&r2=1.84.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-interp.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.17&r2=1.17.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-interp.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.11&r2=1.11.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/async-nat-sigthread.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/async-nat-sigthread.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/async-nat-inferior.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/async-nat-inferior.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/TODO.async.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/README.async.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/PROBLEMS.async.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/wrapper.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.15&r2=1.15.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/version.in.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.1769&r2=1.1769.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/top.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.114&r2=1.114.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.83&r2=1.83.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.119&r2=1.119.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/remote.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.210&r2=1.210.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/main.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.58&r2=1.58.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linux-thread-db.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.16&r2=1.16.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/interps.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.10&r2=1.10.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/interps.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.16&r2=1.16.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.210&r2=1.210.6.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/inf-loop.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.4&r2=1.4.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/inf-child.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.8&r2=1.8.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/i386-linux-nat.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.69&r2=1.69.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/exec.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.61&r2=1.61.6.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/event-top.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.9&r2=1.9.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/event-top.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.45&r2=1.45.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/event-loop.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.5&r2=1.5.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/event-loop.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.29&r2=1.29.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/defs.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.194&r2=1.194.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cli-out.h.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.5&r2=1.5.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cli-out.c.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.21&r2=1.21.14.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=nickrob-async-20060513-branch&r1=1.7731&r2=1.7731.2.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]