Fix infinite loop in is_linked_with_cygwin_dll
authorTom Tromey <tromey@adacore.com>
Thu, 23 Apr 2020 18:15:28 +0000 (12:15 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 23 Apr 2020 18:53:15 +0000 (12:53 -0600)
commit29514b87281c438543e4fc6ddda245dc194d5677
tree2edb72de2b11762b80a2a541707782206f29dd52
parent5939967b355ba6a940887d19847b7893a4506067
Fix infinite loop in is_linked_with_cygwin_dll

There were some Windows timeouts after the last merge.  Debugging
showed that these were caused by an infinite loop in
is_linked_with_cygwin_dll when reading C:\Windows\SysWOW64\win32u.dll.

This patch fixes the problem by ensuring that the loop always makes
progress.

gdb/ChangeLog
2020-04-23  Tom Tromey  <tromey@adacore.com>

* windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
in loop.
gdb/ChangeLog
gdb/windows-tdep.c