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
b718fbc3
Commit
b718fbc3
authored
Nov 21, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Search debug info files into local cache of debuginfod.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
69108af6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
module.c
dlls/dbghelp/module.c
+23
-1
No files found.
dlls/dbghelp/module.c
View file @
b718fbc3
...
@@ -745,6 +745,7 @@ struct image_file_map* image_load_debugaltlink(struct image_file_map* fmap, stru
...
@@ -745,6 +745,7 @@ struct image_file_map* image_load_debugaltlink(struct image_file_map* fmap, stru
static
BOOL
image_locate_build_id_target
(
struct
image_file_map
*
fmap
,
const
BYTE
*
id
,
unsigned
idlen
)
static
BOOL
image_locate_build_id_target
(
struct
image_file_map
*
fmap
,
const
BYTE
*
id
,
unsigned
idlen
)
{
{
struct
image_file_map
*
fmap_link
=
NULL
;
struct
image_file_map
*
fmap_link
=
NULL
;
DWORD
sz
;
WCHAR
*
p
;
WCHAR
*
p
;
WCHAR
*
z
;
WCHAR
*
z
;
...
@@ -764,7 +765,7 @@ static BOOL image_locate_build_id_target(struct image_file_map* fmap, const BYTE
...
@@ -764,7 +765,7 @@ static BOOL image_locate_build_id_target(struct image_file_map* fmap, const BYTE
z
=
append_hex
(
z
,
id
+
1
,
id
+
idlen
);
z
=
append_hex
(
z
,
id
+
1
,
id
+
idlen
);
}
}
}
}
memcpy
(
z
,
L".debug"
,
sizeof
(
L".debug"
)
);
wcscpy
(
z
,
L".debug"
);
TRACE
(
"checking %s
\n
"
,
wine_dbgstr_w
(
p
));
TRACE
(
"checking %s
\n
"
,
wine_dbgstr_w
(
p
));
if
(
image_check_debug_link_gnu_id
(
p
,
fmap_link
,
id
,
idlen
))
if
(
image_check_debug_link_gnu_id
(
p
,
fmap_link
,
id
,
idlen
))
...
@@ -774,6 +775,27 @@ static BOOL image_locate_build_id_target(struct image_file_map* fmap, const BYTE
...
@@ -774,6 +775,27 @@ static BOOL image_locate_build_id_target(struct image_file_map* fmap, const BYTE
return
TRUE
;
return
TRUE
;
}
}
sz
=
GetEnvironmentVariableW
(
L"WINEHOMEDIR"
,
NULL
,
0
);
if
(
sz
)
{
p
=
realloc
(
p
,
sz
*
sizeof
(
WCHAR
)
+
sizeof
(
L"
\\
.cache
\\
debuginfod_client
\\
"
)
+
idlen
*
2
*
sizeof
(
WCHAR
)
+
sizeof
(
L"
\\
debuginfo"
)
+
500
);
GetEnvironmentVariableW
(
L"WINEHOMEDIR"
,
p
,
sz
);
z
=
p
+
sz
-
1
;
wcscpy
(
z
,
L"
\\
.cache
\\
debuginfod_client
\\
"
);
z
+=
wcslen
(
z
);
z
=
append_hex
(
z
,
id
,
id
+
idlen
);
wcscpy
(
z
,
L"
\\
debuginfo"
);
TRACE
(
"checking %ls
\n
"
,
p
);
if
(
image_check_debug_link_gnu_id
(
p
,
fmap_link
,
id
,
idlen
))
{
free
(
p
);
fmap
->
alternate
=
fmap_link
;
return
TRUE
;
}
}
TRACE
(
"not found
\n
"
);
TRACE
(
"not found
\n
"
);
free
(
p
);
free
(
p
);
HeapFree
(
GetProcessHeap
(),
0
,
fmap_link
);
HeapFree
(
GetProcessHeap
(),
0
,
fmap_link
);
...
...
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