diff options
author | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:33:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:47:58 -0600 |
commit | 4834dad062658ef49ef86c9c48eb004c48a242a5 (patch) | |
tree | 2ca8bcb623b43181fc73c18781f3b4045ea053de /gdb/nat | |
parent | 65bafd5b156bcb4f308f304e55a03e13f4eb2bed (diff) | |
download | binutils-4834dad062658ef49ef86c9c48eb004c48a242a5.zip binutils-4834dad062658ef49ef86c9c48eb004c48a242a5.tar.gz binutils-4834dad062658ef49ef86c9c48eb004c48a242a5.tar.bz2 |
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".
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/windows-nat.c | 5 | ||||
-rw-r--r-- | gdb/nat/windows-nat.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index ca3e308..6c0218c 100644 --- a/gdb/nat/windows-nat.c +++ b/gdb/nat/windows-nat.c @@ -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; } + +} diff --git a/gdb/nat/windows-nat.h b/gdb/nat/windows-nat.h index ccdf207..df28364 100644 --- a/gdb/nat/windows-nat.h +++ b/gdb/nat/windows-nat.h @@ -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 |