[lldb] DWARFDebugInfoEntry::Extract(): Print an error for unsupported DW_FORM_*

This commit is contained in:
Jan Kratochvil 2021-03-02 16:39:04 +01:00
parent 289fee4ab7
commit 61c29321b3
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ bool DWARFDebugInfoEntry::Extract(const DWARFDataExtractor &data,
break;
default:
cu->GetSymbolFileDWARF().GetObjectFile()->GetModule()->ReportError(
"{0x%8.8x}: Unsupported DW_FORM_0x%x, please file a bug and "
"attach the file at the start of this error message",
m_offset, (unsigned)form);
*offset_ptr = m_offset;
return false;
}