fix a segfault when doing backtraces without debug info

This commit is contained in:
Bill Currie 2007-05-07 23:10:54 +00:00 committed by Jeff Teunissen
parent 3c78eaaa49
commit b167bc302b

View file

@ -387,6 +387,8 @@ PR_Get_Param_Def (progs_t *pr, dfunction_t *func, unsigned parm)
pr_auxfunction_t *aux_func;
ddef_t *ddef = 0;
if (!pr->debug)
return 0;
if (!func)
return 0;