From: Lerele <lerele@champenstudios.com>
To: gdb-patches@sourceware.org
Subject: Re: [win32] Fix suspend count handling
Date: Sun, 25 Nov 2007 20:34:00 -0000 [thread overview]
Message-ID: <4749DC53.5090803@champenstudios.com> (raw)
In-Reply-To: <20071125181316.GB7689@ednor.casa.cgf.cx>
Christopher Faylor escribió:
> On Sun, Nov 25, 2007 at 03:44:31PM +0100, Lerele wrote:
>
>> What do you think?
>>
>
> There is some code in win32-nat.c which was a result of my uncertainty
> about the Windows debugging API. I thought that since we have a couple
> more eyes on this now someone might know a bit more about how this
> works. Understanding the foundations is never a bad idea.
>
> I'm not interested in gdbserver or what you think may be happening in
> the future. If the SuspendThread/ResumeThread code can be eliminated
> from win32-nat.c along with all of the bookkeeping that is required to
> avoid races then it may be a good idea to do so. Whether it is a good
> idea in light of future enhancements is a decision I can make but,
> personally, I rarely see a good reason to keep code complication around
> for the future unless someone is actually planning to do the work.
>
> We can stop talking about this now since it is apparent that no one
> actually knows the answer to my question.
>
> cgf
>
>
Okay.
Derived from my previous messages, which by the way I do not really know
if you read/undestood, is that for the third time I'm saying
SuspendThread I think is safer (as you did think once) and does not
really hurt, and it's not such a complication keeping it around, in my
opinion.
The only problem I see is that a small bug has been detected, that's all.
If win32-nat.c is going to give control back to gdb in response to a
Win32 debug event only, it's obvious SuspendThread is not needed.
When WaitForDebugEvent returns an event, all child threads are stopped,
so yes, SuspendThread is *not* needed.
Is this the short answer you were looking for???
Also, may you be interested in the fact that currently interrupting a
running program using gdb 6.7 does *not* seem to work? Either if you
run gdb alone (not gdbserver) or using a front-end?
To my point, as gdbserver win32 code is win32-nat.c based, funtionality
is very similar. One such functionality could be the latest
SuspendThread interruption that has been added to gdbserver (but not to
win32-nat.c). As such, could you be interested in this for win32-nat.c?
If this functionality is of interest, then that's another reason to keep
thread_rec/SuspendThread.
next prev parent reply other threads:[~2007-11-25 20:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-21 0:35 Pedro Alves
2007-11-21 11:25 ` Pierre Muller
2007-11-21 13:43 ` Pedro Alves
2007-11-21 14:13 ` Pierre Muller
2007-11-21 15:08 ` Pedro Alves
2007-11-21 15:32 ` Pierre Muller
2007-11-21 18:19 ` Pedro Alves
2007-11-21 23:33 ` Pedro Alves
2007-11-22 9:19 ` Pierre Muller
2007-11-23 1:07 ` Christopher Faylor
2007-11-23 10:19 ` Lerele
2007-11-23 18:30 ` Lerele
2007-11-24 12:43 ` Pedro Alves
2007-11-24 14:21 ` Lerele
2007-11-24 5:33 ` Christopher Faylor
2007-11-24 14:18 ` Lerele
2007-11-24 15:49 ` Pedro Alves
2007-11-24 17:50 ` Lerele
2007-11-24 20:49 ` Christopher Faylor
2007-11-24 20:48 ` Christopher Faylor
2007-11-25 14:44 ` Lerele
2007-11-25 18:13 ` Christopher Faylor
2007-11-25 18:56 ` Pedro Alves
2007-11-25 22:05 ` Christopher Faylor
2007-11-25 22:13 ` Lerele
2007-11-25 20:34 ` Lerele [this message]
2007-11-24 12:16 ` Pedro Alves
2007-11-24 20:51 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4749DC53.5090803@champenstudios.com \
--to=lerele@champenstudios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox