Eric Pouech : dbghelp: Don't call assert() on missing subprogram dwarf's information.
Alexandre Julliard
julliard at winehq.org
Fri Sep 3 16:25:28 CDT 2021
Module: wine
Branch: master
Commit: 0b84fa05a1dca78a8cb7734ac1bb4890ac468865
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0b84fa05a1dca78a8cb7734ac1bb4890ac468865
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Thu Sep 2 11:22:50 2021 +0200
dbghelp: Don't call assert() on missing subprogram dwarf's information.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/dwarf.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index ee73abdf378..2f8a18cae8d 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1602,10 +1602,10 @@ static void dwarf2_parse_variable(dwarf2_subprogram_t* subpgm,
/* either a pmt/variable relative to frame pointer or
* pmt/variable in a register
*/
- assert(subpgm->func);
- symt_add_func_local(subpgm->ctx->module, subpgm->func,
- is_pmt ? DataIsParam : DataIsLocal,
- &loc, block, param_type, name.u.string);
+ if (subpgm->func)
+ symt_add_func_local(subpgm->ctx->module, subpgm->func,
+ is_pmt ? DataIsParam : DataIsLocal,
+ &loc, block, param_type, name.u.string);
break;
}
}
More information about the wine-cvs
mailing list