aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-04-30 10:22:23 -0600
committerTom Tromey <tromey@adacore.com>2021-04-30 10:22:24 -0600
commit9e439f0098d1dd21d79dff3f030ddcd0b1cb244b (patch)
tree1b9c55df7a9a563014b832c88512445ed70c070f /gdb/ChangeLog
parent1053c6389a699550f2c7c1f118ce4d2c1889a73a (diff)
downloadbinutils-9e439f0098d1dd21d79dff3f030ddcd0b1cb244b.zip
binutils-9e439f0098d1dd21d79dff3f030ddcd0b1cb244b.tar.gz
binutils-9e439f0098d1dd21d79dff3f030ddcd0b1cb244b.tar.bz2
Move function indirection code to nat/windows-nat
gdb and gdbserver both look for functions in some Windows DLLs at runtime. This patch moves this code out of gdb and into nat/windows-nat, so it can be shared by both programs. gdb/ChangeLog 2021-04-30 Tom Tromey <tromey@adacore.com> * windows-nat.c: Move code to nat/windows-nat.[ch]. (_initialize_windows_nat): Call initialize_loadable. * nat/windows-nat.h (AdjustTokenPrivileges) (DebugActiveProcessStop, DebugBreakProcess) (DebugSetProcessKillOnExit, EnumProcessModules) (EnumProcessModulesEx, GetModuleInformation) (GetModuleFileNameExA, GetModuleFileNameExW) (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize) (GetCurrentConsoleFont, Wow64SuspendThread) (Wow64GetThreadContext, Wow64SetThreadContext) (Wow64GetThreadSelectorEntry): Move from windows-nat.c. (AdjustTokenPrivileges_ftype) (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype) (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype) (EnumProcessModulesEx_ftype, GetModuleInformation_ftype) (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype) (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype) (GetConsoleFontSize_ftype) (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype) (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype) (Wow64GetThreadSelectorEntry_ftype): Likewise. (initialize_loadable): Declare. * nat/windows-nat.c (AdjustTokenPrivileges) (DebugActiveProcessStop, DebugBreakProcess) (DebugSetProcessKillOnExit, EnumProcessModules) (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA) (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken) (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread) (Wow64GetThreadContext, Wow64SetThreadContext) (Wow64GetThreadSelectorEntry): Define. (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move from windows-nat.c. (initialize_loadable): Likewise, and rename.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog36
1 files changed, 36 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 673fa3e..621a5db 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,41 @@
2021-04-30 Tom Tromey <tromey@adacore.com>
+ * windows-nat.c: Move code to nat/windows-nat.[ch].
+ (_initialize_windows_nat): Call initialize_loadable.
+ * nat/windows-nat.h (AdjustTokenPrivileges)
+ (DebugActiveProcessStop, DebugBreakProcess)
+ (DebugSetProcessKillOnExit, EnumProcessModules)
+ (EnumProcessModulesEx, GetModuleInformation)
+ (GetModuleFileNameExA, GetModuleFileNameExW)
+ (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
+ (GetCurrentConsoleFont, Wow64SuspendThread)
+ (Wow64GetThreadContext, Wow64SetThreadContext)
+ (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
+ (AdjustTokenPrivileges_ftype)
+ (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
+ (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
+ (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
+ (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
+ (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
+ (GetConsoleFontSize_ftype)
+ (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
+ (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
+ (Wow64GetThreadSelectorEntry_ftype): Likewise.
+ (initialize_loadable): Declare.
+ * nat/windows-nat.c (AdjustTokenPrivileges)
+ (DebugActiveProcessStop, DebugBreakProcess)
+ (DebugSetProcessKillOnExit, EnumProcessModules)
+ (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
+ (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
+ (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
+ (Wow64GetThreadContext, Wow64SetThreadContext)
+ (Wow64GetThreadSelectorEntry): Define.
+ (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
+ from windows-nat.c.
+ (initialize_loadable): Likewise, and rename.
+
+2021-04-30 Tom Tromey <tromey@adacore.com>
+
* windows-nat.c (bad_GetModuleFileNameEx): Remove define.
(bad_DebugActiveProcessStop, bad_DebugBreakProcess)
(bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)