commit | dadaf42c653f4eba6ada9d09d087253e8c97ecd7 | [log] [tgz] |
---|---|---|
author | ZENG Hao <c@cyano.cn> | Sat Apr 19 06:41:28 2025 +0800 |
committer | Tom Tromey <tromey@adacore.com> | Tue Apr 22 08:46:00 2025 -0600 |
tree | f674910d0c39182089e2d3c8b428afaa591ce028 | |
parent | 236fb2b56e6367159aa5457d99428a751ff37cdd [diff] |
gdb: fix ui-style regex initializing order This fixes a crash on Windows NT 4.0, where windows-nat failed dynamic loading some Win32 functions and print a warning message with styled string, which depends on ui-style regex. By using `compiled_regex` constructor, the regex is guaranteed to be initialized before `_initialize_xxx` functions. Approved-By: Tom Tromey <tom@tromey.com>