diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2022-10-19 07:56:02 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2022-10-25 05:11:29 -0400 |
| commit | 4765294ca4bd7dd54207892b199f3053702d9a2a (patch) | |
| tree | 678317de9d228b5d4532805fd7457af240cc0110 /lib/std/debug.zig | |
| parent | 912b84bbad698d18a6b844f9c05c074d2880e35b (diff) | |
| download | zig-4765294ca4bd7dd54207892b199f3053702d9a2a.tar.gz zig-4765294ca4bd7dd54207892b199f3053702d9a2a.zip | |
cbe: get enough things working to support basic programs
* Enable advanced start support.
* Enable advanced test_runner support.
* Zig Language Reference's Hello World now works.
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 21b05249a1..de7aa07b8b 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -1222,7 +1222,13 @@ pub const DebugInfo = struct { } pub fn getModuleForAddress(self: *DebugInfo, address: usize) !*ModuleDebugInfo { - if (comptime builtin.target.isDarwin()) { + if (builtin.zig_backend == .stage2_c) { + return @as(error{ + InvalidDebugInfo, + MissingDebugInfo, + UnsupportedBackend, + }, error.UnsupportedBackend); + } else if (comptime builtin.target.isDarwin()) { return self.lookupModuleDyld(address); } else if (native_os == .windows) { return self.lookupModuleWin32(address); |
