Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro_alves@portugalmail.pt>
To: Lerele <lerele@champenstudios.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] New gdbserver Win32 interrupt code
Date: Sun, 04 Nov 2007 02:27:00 -0000	[thread overview]
Message-ID: <472D2E1B.2020203@portugalmail.pt> (raw)
In-Reply-To: <472D2035.5070004@champenstudios.com>

Lerele wrote:
> Hello,
> 
> Sorry for the delay, didn't get the time to continue with gdbserver 
> Win32 coding.
> 

Welcome back!

> I have tried to code the bits with WinCE in mind by copying how it's 
> already done for WinCE (LoadLibrary basically), but I have not compiled 
> nor tested it under Windows CE. However, it does work fine with Cygwin.
> 

I also implemented the synthetic suspending here, because soon
after that thread, I had a need for it in WinCE.  Unfortunatelly, I got
distracted with other things and never submitted.  I hate it when
work gets duplicated  :(

At a quick glance, I think your patch should be at least split
in 3.

1 - the synthetic suspending

   On WinCE, the synthetic suspending is also needed when
attaching, since in opposition to 9xNT, the OS doesn't stop
the inferior at all (neither when attaching nor running).
If you're OK with it, I'll clean up my patch a bit, and merge
with your bits so 1 can go in first.  It will be easier for me
this way, since I've already taken care of the function
reusing and ifdefing minimising.  I'll then volunteer to
clean up the rest of your patch for you, as a reward for
you patience  ;)

2 - the suspend count handling

   This is also a problem in native debugging
   (gdb/win32-nat.c).  I also saw this when doing my version
   of 1.  I got a chance to look at the logs of the native
   WinCE debugger, and could infer that it also takes care of
   this correctly.  The way they do it, is to read the current
   suspend count by always doing a SuspendThread + ResumeThread
   sequence on a debug event (ResumeThread return the current
   suspend count).

3 - the elevation

Cheers,
Pedro Alves



  reply	other threads:[~2007-11-04  2:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-04  1:28 Lerele
2007-11-04  2:27 ` Pedro Alves [this message]
2007-11-04 12:40   ` Lerele
2007-11-04 17:22     ` Pedro Alves
2007-11-04 19:54       ` Lerele

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=472D2E1B.2020203@portugalmail.pt \
    --to=pedro_alves@portugalmail.pt \
    --cc=gdb-patches@sourceware.org \
    --cc=lerele@champenstudios.com \
    /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