This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug win32/14018] Win32 fails to continue with "winerr 5" (pc register not available) after SigTrap while process paused
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 19 Apr 2014 08:27:08 +0000
- Subject: [Bug win32/14018] Win32 fails to continue with "winerr 5" (pc register not available) after SigTrap while process paused
- Auto-submitted: auto-generated
- References: <bug-14018-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14018
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, gdb-7.7-branch has been updated
via 230109e7ff8ad9b1268d251cba1fa26a24efde64 (commit)
from b4a18502ba8e066d0862ecc0ce5bb4d16eafdbbf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=230109e7ff8ad9b1268d251cba1fa26a24efde64
commit 230109e7ff8ad9b1268d251cba1fa26a24efde64
Author: Eli Zaretskii <eliz@gnu.org>
Date: Sat Apr 19 11:12:19 2014 +0300
PR gdb/14018 -- avoid "PC register not available" errors.
gdb/windows-nat.c (thread_rec): Don't display a warning when
SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
fails for any reason, set th->suspended to -1, so that we don't
try to resume such a thread. Also, don't return NULL in these
cases, to avoid completely ruin the session due to "PC register is
not available" error.
(do_windows_fetch_inferior_registers): Check errors in
GetThreadContext call.
(windows_continue): Accept an additional argument KILLED; if not
zero, ignore errors in the SetThreadContext call, since the
inferior was killed and is shutting down.
(windows_resume, get_windows_debug_event)
(windows_create_inferior, windows_mourn_inferior)
(windows_kill_inferior): All callers of windows_continue changed
to adjust to its new calling sequence.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 19 +++++++++++++++++++
gdb/windows-nat.c | 49 +++++++++++++++++++++++++++++++++----------------
2 files changed, 52 insertions(+), 16 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.