commit | 02d04eac24f497e34ac9869bac5bfb1e044a6b62 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Wed Jul 20 12:46:08 2022 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Tue Aug 16 08:04:37 2022 -0600 |
tree | 5dbf104d58fe1abec6fe1338fb823c78a443de06 | |
parent | ec29a63c80602056bfc8533d230394d0db14b982 [diff] |
Use strwinerror in gdb/windows-nat.c When working on windows-nat.c, it's useful to see an error message in addition to the error number given by GetLastError. This patch moves strwinerror from gdbserver to gdbsupport, and then updates windows-nat.c to use it. A couple of minor changes to strwinerror (constify the return type and use the ARRAY_SIZE macro) are also included.