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
6ab88caf
Commit
6ab88caf
authored
Mar 01, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Don't fail in SymAddSymbol for modules without debug information.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
61f9f5a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
module.c
dlls/dbghelp/module.c
+2
-2
path.c
dlls/dbghelp/tests/path.c
+0
-2
No files found.
dlls/dbghelp/module.c
View file @
6ab88caf
...
...
@@ -404,8 +404,9 @@ BOOL module_load_debug(struct module* module)
if
(
!
ret
)
module
->
module
.
SymType
=
SymNone
;
assert
(
module
->
module
.
SymType
!=
SymDeferred
);
module
->
module
.
NumSyms
=
module
->
ht_symbols
.
num_elts
;
return
ret
;
}
return
module
->
module
.
SymType
!=
SymNone
;
return
TRUE
;
}
/******************************************************************
...
...
@@ -416,7 +417,6 @@ BOOL module_load_debug(struct module* module)
* the module itself)
* - if the module has no debug info and has an ELF container, then return the ELF
* container (and also force the ELF container's debug info loading if deferred)
* - otherwise return the module itself if it has some debug info
*/
BOOL
module_get_debug
(
struct
module_pair
*
pair
)
{
...
...
dlls/dbghelp/tests/path.c
View file @
6ab88caf
...
...
@@ -1884,7 +1884,6 @@ static void test_load_modules_details(void)
SymFromNameW
(
dummy
,
L"foo"
,
sym
);
}
ret
=
SymAddSymbol
(
dummy
,
base
,
"winetest_symbol_virtual"
,
base
+
4242
,
13
,
0
);
todo_wine_if
(
i
==
8
||
i
==
9
||
(
i
>=
12
&&
i
<=
15
))
{
/* temp */
ok
(
ret
,
"Failed to add symbol
\n
"
);
memset
(
sym
,
0
,
sizeof
(
*
sym
));
sym
->
SizeOfStruct
=
sizeof
(
*
sym
);
...
...
@@ -1899,7 +1898,6 @@ static void test_load_modules_details(void)
ret
=
SymFromNameW
(
dummy
,
sym_name
,
(
void
*
)
sym
);
ok
(
ret
,
"Couldn't find symbol %ls
\n
"
,
sym_name
);
}
}
/* temp */
ret
=
SymCleanup
(
dummy
);
ok
(
ret
,
"SymCleanup failed: %lu
\n
"
,
GetLastError
());
for
(
ptr
=
test
->
test_files
;
*
ptr
;
ptr
++
)
...
...
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