Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7d82abd2
Commit
7d82abd2
authored
Aug 26, 2021
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: dbg_get_debuggee_info() is not used anymore. Remove it.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
efdd07ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
40 deletions
+0
-40
debugger.h
programs/winedbg/debugger.h
+0
-1
winedbg.c
programs/winedbg/winedbg.c
+0
-39
No files found.
programs/winedbg/debugger.h
View file @
7d82abd2
...
...
@@ -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
);
...
...
programs/winedbg/winedbg.c
View file @
7d82abd2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment