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
c8b5a3be
Commit
c8b5a3be
authored
Mar 25, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Explicitly pass file type to path_find_symbol_file.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a676c578
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+1
-3
msc.c
dlls/dbghelp/msc.c
+2
-2
path.c
dlls/dbghelp/path.c
+2
-2
pe_module.c
dlls/dbghelp/pe_module.c
+1
-1
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
c8b5a3be
...
...
@@ -641,8 +641,6 @@ extern struct module*
extern
struct
module
*
module_get_containee
(
const
struct
process
*
pcs
,
const
struct
module
*
inner
)
DECLSPEC_HIDDEN
;
extern
enum
module_type
module_get_type_by_name
(
const
WCHAR
*
name
)
DECLSPEC_HIDDEN
;
extern
void
module_reset_debug_info
(
struct
module
*
module
)
DECLSPEC_HIDDEN
;
extern
BOOL
module_remove
(
struct
process
*
pcs
,
struct
module
*
module
)
DECLSPEC_HIDDEN
;
...
...
@@ -665,7 +663,7 @@ extern BOOL pdb_virtual_unwind(struct cpu_stack_walk *csw, DWORD_PTR ip,
/* path.c */
extern
BOOL
path_find_symbol_file
(
const
struct
process
*
pcs
,
const
struct
module
*
module
,
PCSTR
full_path
,
const
GUID
*
guid
,
DWORD
dw1
,
DWORD
dw2
,
PCSTR
full_path
,
enum
module_type
type
,
const
GUID
*
guid
,
DWORD
dw1
,
DWORD
dw2
,
WCHAR
*
buffer
,
BOOL
*
is_unmatched
)
DECLSPEC_HIDDEN
;
extern
WCHAR
*
get_dos_file_name
(
const
WCHAR
*
filename
)
DECLSPEC_HIDDEN
;
extern
BOOL
search_dll_path
(
const
WCHAR
*
name
,
BOOL
(
*
match
)(
void
*
,
HANDLE
,
const
WCHAR
*
),
void
*
param
)
DECLSPEC_HIDDEN
;
...
...
dlls/dbghelp/msc.c
View file @
c8b5a3be
...
...
@@ -2458,11 +2458,11 @@ static HANDLE map_pdb_file(const struct process* pcs,
switch
(
lookup
->
kind
)
{
case
PDB_JG
:
ret
=
path_find_symbol_file
(
pcs
,
module
,
lookup
->
filename
,
NULL
,
lookup
->
timestamp
,
ret
=
path_find_symbol_file
(
pcs
,
module
,
lookup
->
filename
,
DMT_PDB
,
NULL
,
lookup
->
timestamp
,
lookup
->
age
,
dbg_file_path
,
&
module
->
module
.
PdbUnmatched
);
break
;
case
PDB_DS
:
ret
=
path_find_symbol_file
(
pcs
,
module
,
lookup
->
filename
,
&
lookup
->
guid
,
0
,
ret
=
path_find_symbol_file
(
pcs
,
module
,
lookup
->
filename
,
DMT_PDB
,
&
lookup
->
guid
,
0
,
lookup
->
age
,
dbg_file_path
,
&
module
->
module
.
PdbUnmatched
);
break
;
}
...
...
dlls/dbghelp/path.c
View file @
c8b5a3be
...
...
@@ -619,7 +619,7 @@ static BOOL CALLBACK module_find_cb(PCWSTR buffer, PVOID user)
}
BOOL
path_find_symbol_file
(
const
struct
process
*
pcs
,
const
struct
module
*
module
,
PCSTR
full_path
,
const
GUID
*
guid
,
DWORD
dw1
,
DWORD
dw2
,
PCSTR
full_path
,
enum
module_type
type
,
const
GUID
*
guid
,
DWORD
dw1
,
DWORD
dw2
,
WCHAR
*
buffer
,
BOOL
*
is_unmatched
)
{
struct
module_find
mf
;
...
...
@@ -638,7 +638,7 @@ BOOL path_find_symbol_file(const struct process* pcs, const struct module* modul
MultiByteToWideChar
(
CP_ACP
,
0
,
full_path
,
-
1
,
full_pathW
,
MAX_PATH
);
filename
=
file_name
(
full_pathW
);
mf
.
kind
=
module_get_type_by_name
(
filename
)
;
mf
.
kind
=
type
;
*
is_unmatched
=
FALSE
;
/* first check full path to file */
...
...
dlls/dbghelp/pe_module.c
View file @
c8b5a3be
...
...
@@ -548,7 +548,7 @@ static BOOL pe_load_dbg_file(const struct process* pcs, struct module* module,
TRACE
(
"Processing DBG file %s
\n
"
,
debugstr_a
(
dbg_name
));
if
(
path_find_symbol_file
(
pcs
,
module
,
dbg_name
,
NULL
,
timestamp
,
0
,
tmp
,
&
module
->
module
.
DbgUnmatched
)
&&
if
(
path_find_symbol_file
(
pcs
,
module
,
dbg_name
,
DMT_DBG
,
NULL
,
timestamp
,
0
,
tmp
,
&
module
->
module
.
DbgUnmatched
)
&&
(
hFile
=
CreateFileW
(
tmp
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
))
!=
INVALID_HANDLE_VALUE
&&
((
hMap
=
CreateFileMappingW
(
hFile
,
NULL
,
PAGE_READONLY
,
0
,
0
,
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