[PATCH 10/13] dbghelp: No longer call assert() on missing subprogram dwarf's information

Eric Pouech eric.pouech at gmail.com
Thu Sep 2 04:22:50 CDT 2021


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 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-devel mailing list