don't seg if the field def can't be found

This commit is contained in:
Bill Currie 2004-02-07 01:57:31 +00:00
parent 920b80fd8c
commit 432ae86cca

View file

@ -499,7 +499,10 @@ value_string (progs_t *pr, etype_t type, pr_type_t *val)
break;
case ev_field:
def = ED_FieldAtOfs (pr, val->integer_var);
if (def)
dsprintf (line, ".%s", PR_GetString (pr, def->s_name));
else
dsprintf (line, ".<$%04x>", val->integer_var);
break;
case ev_void:
return "void";