This is the mail archive of the gdb-patches@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]

[patch] Fix target-async SIGTTOU stop (PR 12260)


Hi,

it is difficult to play with `set target-async on' as it usually SIGTTOU stops
at various places.
http://sourceware.org/bugzilla/show_bug.cgi?id=12260

$ ./gdb -nx -ex 'set target-async on' -ex start ./gdb
[...]
Starting program: .../gdb/gdb 
[1]+  Stopped                 ./gdb -nx -ex 'set target-async on' -ex start ./gdb

If it has a regression it IMO only means there is missing
target_terminal_inferior call at some other place.

No regressions on {x86_64,x86_64-m32,i686}-fedora16pre-linux-gnu.  But I was
unable to reproduce the problem under DejaGnu so the regression test may not
be meaningful.

Not going to check it in without a review.


Thanks,
Jan


gdb/
2011-08-23  Jan Kratochvil  <jan.kratochvil@redhat.com>

	PR 12260
	* event-top.c (cli_command_loop): Call target_terminal_ours.

--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -193,6 +193,8 @@ cli_command_loop (void)
       char *a_prompt;
       char *gdb_prompt = get_prompt (0);
 
+      target_terminal_ours ();
+
       /* Tell readline what the prompt to display is and what function
          it will need to call after a whole line is read.  This also
          displays the first prompt.  */


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