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