Wrap shared windows-nat code in windows_nat namespace

This wraps the shared windows-nat code in a windows_nat namespace.
This helps avoid name clashes.

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

	* windows-nat.c: Add "using namespace".
	* nat/windows-nat.h: Wrap contents in windows_nat namespace.
	* nat/windows-nat.c: Wrap contents in windows_nat namespace.

gdbserver/ChangeLog
2020-04-08  Tom Tromey  <tromey@adacore.com>

	* win32-low.h (struct win32_target_ops): Use qualified names where
	needed.
	* win32-i386-low.c: Add "using namespace".
	* win32-low.c: Add "using namespace".
	* win32-arm-low.c: Add "using namespace".
This commit is contained in:
Tom Tromey 2020-04-08 14:33:35 -06:00
parent 65bafd5b15
commit 4834dad062
9 changed files with 41 additions and 7 deletions

View file

@ -19,6 +19,9 @@
#include "gdbsupport/common-defs.h"
#include "nat/windows-nat.h"
namespace windows_nat
{
windows_thread_info::~windows_thread_info ()
{
CloseHandle (h);
@ -65,3 +68,5 @@ windows_thread_info::resume ()
}
suspended = 0;
}
}

View file

@ -21,6 +21,9 @@
#include <windows.h>
namespace windows_nat
{
/* Thread information structure used to track extra information about
each thread. */
struct windows_thread_info
@ -87,4 +90,6 @@ struct windows_thread_info
gdb::unique_xmalloc_ptr<char> name;
};
}
#endif