Francois Gouget : winedbg: dbg_get_debuggee_info() is not used anymore. Remove it.
Alexandre Julliard
julliard at winehq.org
Thu Aug 26 15:22:32 CDT 2021
Module: wine
Branch: master
Commit: 7d82abd2befecfcc6fc1a3be85aa48ee548083ad
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7d82abd2befecfcc6fc1a3be85aa48ee548083ad
Author: Francois Gouget <fgouget at free.fr>
Date: Thu Aug 26 14:51:30 2021 +0200
winedbg: dbg_get_debuggee_info() is not used anymore. Remove it.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winedbg/debugger.h | 1 -
programs/winedbg/winedbg.c | 39 ---------------------------------------
2 files changed, 40 deletions(-)
diff --git a/programs/winedbg/debugger.h b/programs/winedbg/debugger.h
index 3733e1b410f..e7a4901a769 100644
--- a/programs/winedbg/debugger.h
+++ b/programs/winedbg/debugger.h
@@ -464,7 +464,6 @@ extern struct dbg_thread* dbg_get_thread(struct dbg_process* p, DWORD tid);
extern void dbg_del_thread(struct dbg_thread* t);
extern BOOL dbg_init(HANDLE hProc, const WCHAR* in, BOOL invade);
extern BOOL dbg_load_module(HANDLE hProc, HANDLE hFile, const WCHAR* name, DWORD_PTR base, DWORD size);
-extern BOOL dbg_get_debuggee_info(HANDLE hProcess, IMAGEHLP_MODULE64* imh_mod);
extern void dbg_set_option(const char*, const char*);
extern void dbg_start_interactive(HANDLE hFile);
extern void dbg_init_console(void);
diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c
index 5e433bbb699..6b363168cd7 100644
--- a/programs/winedbg/winedbg.c
+++ b/programs/winedbg/winedbg.c
@@ -411,45 +411,6 @@ BOOL dbg_init(HANDLE hProc, const WCHAR* in, BOOL invade)
return ret;
}
-struct mod_loader_info
-{
- HANDLE handle;
- IMAGEHLP_MODULE64* imh_mod;
-};
-
-static BOOL CALLBACK mod_loader_cb(PCSTR mod_name, DWORD64 base, PVOID ctx)
-{
- struct mod_loader_info* mli = ctx;
-
- if (!strcmp(mod_name, "<wine-loader>"))
- {
- if (SymGetModuleInfo64(mli->handle, base, mli->imh_mod))
- return FALSE; /* stop enum */
- }
- return TRUE;
-}
-
-BOOL dbg_get_debuggee_info(HANDLE hProcess, IMAGEHLP_MODULE64* imh_mod)
-{
- struct mod_loader_info mli;
- BOOL opt;
-
- /* this will resynchronize builtin dbghelp's internal ELF module list */
- SymLoadModule(hProcess, 0, 0, 0, 0, 0);
- mli.handle = hProcess;
- mli.imh_mod = imh_mod;
- imh_mod->SizeOfStruct = sizeof(*imh_mod);
- imh_mod->BaseOfImage = 0;
- /* this is a wine specific options to return also ELF modules in the
- * enumeration
- */
- opt = SymSetExtendedOption(SYMOPT_EX_WINE_NATIVE_MODULES, TRUE);
- SymEnumerateModules64(hProcess, mod_loader_cb, &mli);
- SymSetExtendedOption(SYMOPT_EX_WINE_NATIVE_MODULES, opt);
-
- return imh_mod->BaseOfImage != 0;
-}
-
BOOL dbg_load_module(HANDLE hProc, HANDLE hFile, const WCHAR* name, DWORD_PTR base, DWORD size)
{
BOOL ret = SymLoadModuleExW(hProc, NULL, name, NULL, base, size, NULL, 0);
More information about the wine-cvs
mailing list