This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix "PC register is not available" issue
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: brobecker at adacore dot com, gdb-patches at sourceware dot org
- Date: Tue, 08 Apr 2014 20:10:20 +0300
- Subject: Re: [PATCH] Fix "PC register is not available" issue
- Authentication-results: sourceware.org; auth=none
- References: <83txawa9wk dot fsf at gnu dot org> <20140318161608 dot GD4282 at adacore dot com> <83pplja2h9 dot fsf at gnu dot org> <20140318165413 dot GE4282 at adacore dot com> <834n2kztfw dot fsf at gnu dot org> <53358C37 dot 9050907 at redhat dot com> <83a9cafcpz dot fsf at gnu dot org> <5335B619 dot 6040605 at redhat dot com> <8361myfa6l dot fsf at gnu dot org> <83ioqucrkw dot fsf at gnu dot org> <5342DBBC dot 4090500 at redhat dot com> <83lhvh6lqi dot fsf at gnu dot org> <5343DE45 dot 5050707 at redhat dot com> <53442710 dot 60104 at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 08 Apr 2014 17:42:56 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: brobecker@adacore.com, gdb-patches@sourceware.org
>
> I'd be very curious to see the backtrace you get
> for the failing thread in your test case (I guess emacs?).
Yes, it's Emacs. Do you mean the backtrace I see when debugging
natively? Because when debugging Emacs with gdbserver, I cannot
reproduce the problem with SuspendThread.
> + /* We get Access Denied (5) when trying to suspend
> + threads that Windows started on behalf of the
> + debuggee, usually when those threads are just
> + about to exit. */
> + if (err != ERROR_ACCESS_DENIED)
>
> I've shown above that whether it was Windows or the program
> itself that started the threads is irrelevant, it'd be good to
> reword this comment.
OK. But now I'm confused: what is the conclusion from what you saw?