commit | c83b95d88feed26eb04f7eca97c08e3ace0b7cbb | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Tue Nov 08 12:14:20 2022 -0700 |
committer | Tom Tromey <tromey@adacore.com> | Thu Nov 17 11:44:30 2022 -0700 |
tree | 6a6fc18e21888feaac051ce5895d0ae2a2ef6a08 | |
parent | 2368c6bf61cc815e124a88f3414c35aff2022b6d [diff] |
Fix static initialization order problem in windows-nat.c This patch fixes a static initialization order problem in windows-nat.c that was pointed out by Jon Turney. The underlying problem is that the windows_nat_target constructor relies on serial_logfile already being constructed, but this is not enforced by C++ rules. This patch fixes the problem by initializing the global windows_nat_target later.