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
68cc7d58
Commit
68cc7d58
authored
Nov 16, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Beef up SymRefreshModuleList.
parent
50a8b2a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
module.c
dlls/dbghelp/module.c
+17
-5
dbghelp.h
include/dbghelp.h
+1
-0
No files found.
dlls/dbghelp/module.c
View file @
68cc7d58
...
...
@@ -455,6 +455,15 @@ enum module_type module_get_type_by_name(const WCHAR* name)
return
DMT_PE
;
}
/******************************************************************
* refresh_module_list
*/
static
BOOL
refresh_module_list
(
struct
process
*
pcs
)
{
/* force transparent ELF and Mach-O loading / unloading */
return
elf_synchronize_module_list
(
pcs
)
||
macho_synchronize_module_list
(
pcs
);
}
/***********************************************************************
* SymLoadModule (DBGHELP.@)
*/
...
...
@@ -536,9 +545,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if
(
Flags
&
~
(
SLMFLAG_VIRTUAL
))
FIXME
(
"Unsupported Flags %08x for %s
\n
"
,
Flags
,
debugstr_w
(
wImageName
));
/* force transparent ELF and Mach-O loading / unloading */
elf_synchronize_module_list
(
pcs
);
macho_synchronize_module_list
(
pcs
);
refresh_module_list
(
pcs
);
/* this is a Wine extension to the API just to redo the synchronisation */
if
(
!
wImageName
&&
!
hFile
)
return
0
;
...
...
@@ -1058,6 +1065,11 @@ void module_reset_debug_info(struct module* module)
*/
BOOL
WINAPI
SymRefreshModuleList
(
HANDLE
hProcess
)
{
FIXME
(
"(%p) stub
\n
"
,
hProcess
);
return
FALSE
;
struct
process
*
pcs
;
TRACE
(
"(%p)
\n
"
,
hProcess
);
if
(
!
(
pcs
=
process_find_by_handle
(
hProcess
)))
return
FALSE
;
return
refresh_module_list
(
pcs
);
}
include/dbghelp.h
View file @
68cc7d58
...
...
@@ -1461,6 +1461,7 @@ BOOL WINAPI SymGetSymPrevW(HANDLE, PIMAGEHLP_SYMBOLW);
DWORD
WINAPI
SymLoadModule
(
HANDLE
,
HANDLE
,
PCSTR
,
PCSTR
,
DWORD
,
DWORD
);
BOOL
WINAPI
SymRegisterCallback
(
HANDLE
,
PSYMBOL_REGISTERED_CALLBACK
,
PVOID
);
BOOL
WINAPI
SymRegisterFunctionEntryCallback
(
HANDLE
,
PSYMBOL_FUNCENTRY_CALLBACK
,
PVOID
);
BOOL
WINAPI
SymRefreshModuleList
(
HANDLE
);
BOOL
WINAPI
SymUnDName
(
PIMAGEHLP_SYMBOL
,
PSTR
,
DWORD
);
BOOL
WINAPI
SymUnloadModule
(
HANDLE
,
DWORD
);
...
...
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