mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
LibDebug: Propagate errors throughout DWARF parsing
Splitting this into a separate commit was an afterthought, so this does not yet feature any fallible operations.
This commit is contained in:
parent
e235c42e4d
commit
e62269650a
17 changed files with 243 additions and 204 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace Debug::Dwarf {
|
||||
|
||||
FlatPtr AttributeValue::as_addr() const
|
||||
ErrorOr<FlatPtr> AttributeValue::as_addr() const
|
||||
{
|
||||
switch (m_form) {
|
||||
case AttributeDataForm::Addr:
|
||||
|
@ -27,7 +27,7 @@ FlatPtr AttributeValue::as_addr() const
|
|||
}
|
||||
}
|
||||
|
||||
char const* AttributeValue::as_string() const
|
||||
ErrorOr<char const*> AttributeValue::as_string() const
|
||||
{
|
||||
switch (m_form) {
|
||||
case AttributeDataForm::String:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue