From: Lerele <lerele@champenstudios.com>
To: gdb-patches@sourceware.org
Subject: Re: [win32] Fix suspend count handling
Date: Sun, 25 Nov 2007 22:13:00 -0000 [thread overview]
Message-ID: <4749F37F.8090003@champenstudios.com> (raw)
In-Reply-To: <20071125220530.GA10356@ednor.casa.cgf.cx>
Christopher Faylor escribió:
> On Sun, Nov 25, 2007 at 06:56:04PM +0000, Pedro Alves wrote:
>
>> Christopher Faylor wrote:
>>
>>> 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.
>>>
>> 100% Agreed.
>>
>> Just to let you know that I plan on looking at this.
>> I'm specifically wanting to look at what we're doing
>> when/if we need to step over something with all
>> threads but the current stopped -- if that is supposed to
>> happen, it looks like we're broken, we should be
>> suspending all the threads but the current before
>> resuming.
>>
>
> I was going to try just temporarily doing this to see what happens:
>
> #define SuspendThread(hThread) 1
> #define ResumeThread(hThread) 1
>
> cgf
>
>
I did remove SuspendThread from gdbserver, before my last reply.
Did have to remove SuspendThreadInterrupt support too.
Worked Ok.
I guess win32-nat.c should be similar.
next prev parent reply other threads:[~2007-11-25 22:13 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 [this message]
2007-11-25 20:34 ` Lerele
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=4749F37F.8090003@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