This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug remote/17028] GDB+GDBserver hangs on Windows waiting for stop event since target-async on by default


https://sourceware.org/bugzilla/show_bug.cgi?id=17028

--- Comment #6 from Pedro Alves <palves at redhat dot com> ---
I changed the test to loop forever, like:

void
increment (int *i)
{
  *i++;
}

int
main (void)
{
  int i = 0;

 again:
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  increment (&i);
  goto again;
}

And I managed to reproduce it too:

 Sending packet: $vCont;s:9c0;c#5c...
 *hang*

This is on Windows 7, 64-bit, in case we're hitting a Windows bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]