Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1cb11830
Commit
1cb11830
authored
Nov 29, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SymLoadModuleEx.
parent
c238ec52
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
3 deletions
+36
-3
dbghelp.c
dlls/dbghelp/dbghelp.c
+15
-0
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+2
-1
module.c
dlls/dbghelp/module.c
+17
-0
dbghelp.h
include/dbghelp.h
+1
-1
No files found.
dlls/dbghelp/dbghelp.c
View file @
1cb11830
...
@@ -100,6 +100,21 @@ struct process* process_find_by_handle(HANDLE hProcess)
...
@@ -100,6 +100,21 @@ struct process* process_find_by_handle(HANDLE hProcess)
}
}
/******************************************************************
/******************************************************************
* validate_addr64 (internal)
*
*/
BOOL
validate_addr64
(
DWORD64
addr
)
{
if
(
addr
>>
32
)
{
FIXME
(
"Unsupported address %s
\n
"
,
wine_dbgstr_longlong
(
addr
));
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
return
TRUE
;
}
/******************************************************************
* SymSetSearchPath (DBGHELP.@)
* SymSetSearchPath (DBGHELP.@)
*
*
*/
*/
...
...
dlls/dbghelp/dbghelp.spec
View file @
1cb11830
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
@ stdcall SymInitialize(long str long)
@ stdcall SymInitialize(long str long)
@ stdcall SymLoadModule64(long long str str double long)
@ stdcall SymLoadModule64(long long str str double long)
@ stdcall SymLoadModule(long long str str long long)
@ stdcall SymLoadModule(long long str str long long)
@ st
ub SymLoadModuleEx
@ st
dcall SymLoadModuleEx(long long str str double long ptr long)
@ stdcall SymMatchFileName(str str ptr ptr)
@ stdcall SymMatchFileName(str str ptr ptr)
@ stub SymMatchString
@ stub SymMatchString
@ stdcall SymRegisterCallback64(long ptr double)
@ stdcall SymRegisterCallback64(long ptr double)
...
...
dlls/dbghelp/dbghelp_private.h
View file @
1cb11830
...
@@ -312,7 +312,8 @@ struct line_info
...
@@ -312,7 +312,8 @@ struct line_info
/* dbghelp.c */
/* dbghelp.c */
extern
struct
process
*
process_find_by_handle
(
HANDLE
hProcess
);
extern
struct
process
*
process_find_by_handle
(
HANDLE
hProcess
);
extern
HANDLE
hMsvcrt
;
extern
HANDLE
hMsvcrt
;
extern
BOOL
validate_addr64
(
DWORD64
addr
);
/* elf_module.c */
/* elf_module.c */
typedef
BOOL
(
*
elf_enum_modules_cb
)(
const
char
*
,
unsigned
long
addr
,
void
*
user
);
typedef
BOOL
(
*
elf_enum_modules_cb
)(
const
char
*
,
unsigned
long
addr
,
void
*
user
);
extern
BOOL
elf_enum_modules
(
HANDLE
hProc
,
elf_enum_modules_cb
,
void
*
);
extern
BOOL
elf_enum_modules
(
HANDLE
hProc
,
elf_enum_modules_cb
,
void
*
);
...
...
dlls/dbghelp/module.c
View file @
1cb11830
...
@@ -375,6 +375,23 @@ done:
...
@@ -375,6 +375,23 @@ done:
}
}
/***********************************************************************
/***********************************************************************
* SymLoadModuleEx (DBGHELP.@)
*/
DWORD64
WINAPI
SymLoadModuleEx
(
HANDLE
hProcess
,
HANDLE
hFile
,
PCSTR
ImageName
,
PCSTR
ModuleName
,
DWORD64
BaseOfDll
,
DWORD
DllSize
,
PMODLOAD_DATA
Data
,
DWORD
Flags
)
{
if
(
Data
||
Flags
)
{
FIXME
(
"Unsupported parameters (%p, %lx) for %s
\n
"
,
Data
,
Flags
,
ImageName
);
if
(
Flags
&
1
)
return
TRUE
;
}
if
(
!
validate_addr64
(
BaseOfDll
))
return
FALSE
;
return
SymLoadModule
(
hProcess
,
hFile
,
(
char
*
)
ImageName
,
(
char
*
)
ModuleName
,
(
DWORD
)
BaseOfDll
,
DllSize
);
}
/***********************************************************************
* SymLoadModule64 (DBGHELP.@)
* SymLoadModule64 (DBGHELP.@)
*/
*/
DWORD
WINAPI
SymLoadModule64
(
HANDLE
hProcess
,
HANDLE
hFile
,
char
*
ImageName
,
DWORD
WINAPI
SymLoadModule64
(
HANDLE
hProcess
,
HANDLE
hFile
,
char
*
ImageName
,
...
...
include/dbghelp.h
View file @
1cb11830
...
@@ -614,7 +614,7 @@ BOOL WINAPI SymGetModuleInfo(HANDLE, DWORD, PIMAGEHLP_MODULE);
...
@@ -614,7 +614,7 @@ BOOL WINAPI SymGetModuleInfo(HANDLE, DWORD, PIMAGEHLP_MODULE);
BOOL
WINAPI
SymGetModuleInfoW
(
HANDLE
,
DWORD
,
PIMAGEHLP_MODULEW
);
BOOL
WINAPI
SymGetModuleInfoW
(
HANDLE
,
DWORD
,
PIMAGEHLP_MODULEW
);
DWORD
WINAPI
SymGetModuleBase
(
HANDLE
,
DWORD
);
DWORD
WINAPI
SymGetModuleBase
(
HANDLE
,
DWORD
);
DWORD
WINAPI
SymLoadModule
(
HANDLE
,
HANDLE
,
PSTR
,
PSTR
,
DWORD
,
DWORD
);
DWORD
WINAPI
SymLoadModule
(
HANDLE
,
HANDLE
,
PSTR
,
PSTR
,
DWORD
,
DWORD
);
DWORD64
WINAPI
SymLoadModuleEx
(
HANDLE
,
HANDLE
,
P
STR
,
P
STR
,
DWORD64
,
DWORD
,
DWORD64
WINAPI
SymLoadModuleEx
(
HANDLE
,
HANDLE
,
P
CSTR
,
PC
STR
,
DWORD64
,
DWORD
,
PMODLOAD_DATA
,
DWORD
);
PMODLOAD_DATA
,
DWORD
);
BOOL
WINAPI
SymUnloadModule
(
HANDLE
,
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