| ... | @@ -761,14 +761,12 @@ fn printLineInfo( | ... | @@ -761,14 +761,12 @@ fn printLineInfo( |
| 761 | } | 761 | } |
| 762 | } | 762 | } |
| 763 | | 763 | |
| 764 | // TODO use this | | |
| 765 | pub const OpenSelfDebugInfoError = error{ | 764 | pub const OpenSelfDebugInfoError = error{ |
| 766 | MissingDebugInfo, | 765 | MissingDebugInfo, |
| 767 | OutOfMemory, | | |
| 768 | UnsupportedOperatingSystem, | 766 | UnsupportedOperatingSystem, |
| 769 | }; | 767 | }; |
| 770 | | 768 | |
| 771 | pub fn openSelfDebugInfo(allocator: mem.Allocator) anyerror!DebugInfo { | 769 | pub fn openSelfDebugInfo(allocator: mem.Allocator) OpenSelfDebugInfoError!DebugInfo { |
| 772 | nosuspend { | 770 | nosuspend { |
| 773 | if (builtin.strip_debug_info) | 771 | if (builtin.strip_debug_info) |
| 774 | return error.MissingDebugInfo; | 772 | return error.MissingDebugInfo; |
| ... | @@ -785,7 +783,7 @@ pub fn openSelfDebugInfo(allocator: mem.Allocator) anyerror!DebugInfo { | ... | @@ -785,7 +783,7 @@ pub fn openSelfDebugInfo(allocator: mem.Allocator) anyerror!DebugInfo { |
| 785 | .windows, | 783 | .windows, |
| 786 | .solaris, | 784 | .solaris, |
| 787 | => return DebugInfo.init(allocator), | 785 | => return DebugInfo.init(allocator), |
| 788 | else => return error.UnsupportedDebugInfo, | 786 | else => return error.UnsupportedOperatingSystem, |
| 789 | } | 787 | } |
| 790 | } | 788 | } |
| 791 | } | 789 | } |