aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-02-12 13:04:36 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-02-12 13:04:36 +0000
commitc44537cf1694643086cb5a9c376a38e18816fc92 (patch)
tree15b8e3ae466cfb5cbed9c2e6b6802cc9b46cca53 /gdb
parent84f5d08e6b2cc79becc9a7dcad5c4ad9ba1959b1 (diff)
downloadgdb-c44537cf1694643086cb5a9c376a38e18816fc92.zip
gdb-c44537cf1694643086cb5a9c376a38e18816fc92.tar.gz
gdb-c44537cf1694643086cb5a9c376a38e18816fc92.tar.bz2
* win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
(do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp instead of target_terminal_init since inferior_ptid isn't set yet.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/win32-nat.c4
-rw-r--r--gdb/windows-nat.c4
3 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 810e956..fcbc672 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-12 Corinna Vinschen <vinschen@redhat.com>
+
+ * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
+ (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
+ instead of target_terminal_init since inferior_ptid isn't set yet.
+
2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
* MAINTAINERS (Write After Approval): Add myself.
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index ecd036e..3ea0966 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -1542,6 +1542,8 @@ win32_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
{
int pid = PIDGET (ptid);
+ target_terminal_ours ();
+
/* We loop when we get a non-standard exception rather than return
with a SPURIOUS because resume can try and step or modify things,
which needs a current_thread->h. But some of these exceptions mark
@@ -1587,7 +1589,7 @@ do_initial_win32_stuff (DWORD pid)
clear_proceed_status ();
init_wait_for_inferior ();
- target_terminal_init ();
+ terminal_init_inferior_with_pgrp (pid);
target_terminal_inferior ();
while (1)
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index ecd036e..3ea0966 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1542,6 +1542,8 @@ win32_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
{
int pid = PIDGET (ptid);
+ target_terminal_ours ();
+
/* We loop when we get a non-standard exception rather than return
with a SPURIOUS because resume can try and step or modify things,
which needs a current_thread->h. But some of these exceptions mark
@@ -1587,7 +1589,7 @@ do_initial_win32_stuff (DWORD pid)
clear_proceed_status ();
init_wait_for_inferior ();
- target_terminal_init ();
+ terminal_init_inferior_with_pgrp (pid);
target_terminal_inferior ();
while (1)