diff options
author | Pedro Alves <palves@redhat.com> | 2007-04-19 19:35:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-04-19 19:35:24 +0000 |
commit | 96998ce73a3e5967481fbeece0327b1c7b3fff05 (patch) | |
tree | 2d502feb98b035e3c73b14380a038386f84729db /gdb | |
parent | f6fdceb7383660bf2beb187864af2422a727ddf9 (diff) | |
download | gdb-96998ce73a3e5967481fbeece0327b1c7b3fff05.zip gdb-96998ce73a3e5967481fbeece0327b1c7b3fff05.tar.gz gdb-96998ce73a3e5967481fbeece0327b1c7b3fff05.tar.bz2 |
* win32-nat.c (win32_detach): Remove delete_command call.
Resume inferior with win32_resume instead of win32_continue.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/win32-nat.c | 5 | ||||
-rw-r--r-- | gdb/windows-nat.c | 5 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b2c35fe..cdf3192 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt> + + * win32-nat.c (win32_detach): Remove delete_command call. + Resume inferior with win32_resume instead of win32_continue. + 2007-04-19 Jerome Guitton <guitton@adacore.com> * ser-mingw.c (fd_is_file): New function. diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 3ea0966..28f9b82 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1775,8 +1775,9 @@ win32_detach (char *args, int from_tty) if (has_detach_ability ()) { - delete_command (NULL, 0); - win32_continue (DBG_CONTINUE, -1); + ptid_t ptid = {-1}; + win32_resume (ptid, 0, TARGET_SIGNAL_0); + if (!DebugActiveProcessStop (current_event.dwProcessId)) { error (_("Can't detach process %lu (error %lu)"), diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 3ea0966..28f9b82 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1775,8 +1775,9 @@ win32_detach (char *args, int from_tty) if (has_detach_ability ()) { - delete_command (NULL, 0); - win32_continue (DBG_CONTINUE, -1); + ptid_t ptid = {-1}; + win32_resume (ptid, 0, TARGET_SIGNAL_0); + if (!DebugActiveProcessStop (current_event.dwProcessId)) { error (_("Can't detach process %lu (error %lu)"), |