Lines Matching refs:error
34 DEFINE_ERROR(ERROR, "An error"),
39 DEFINE_ERROR(ELF, "ELF error"),
54 DEFINE_ERROR(FRAME_INSTR_EXEC_ERROR, "Frame instruction exec error"),
62 DEFINE_ERROR(NUM, "Unknown DWARF error")
67 dwarf_errmsg_(Dwarf_Error *error)
71 if (error == NULL)
74 if (error->err_error < 0 || error->err_error >= DW_DLE_NUM)
76 else if (error->err_error == DW_DLE_NONE)
79 p = _libdwarf_errors[error->err_error];
81 if (error->err_error == DW_DLE_ELF)
82 snprintf(error->err_msg, sizeof(error->err_msg),
83 "ELF error : %s [%s(%d)]", elf_errmsg(error->err_elferror),
84 error->err_func, error->err_line);
86 snprintf(error->err_msg, sizeof(error->err_msg),
87 "%s [%s(%d)]", p, error->err_func, error->err_line);
89 return (const char *) error->err_msg;